mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Make native notifications setting tri-state
This commit is contained in:
@@ -698,7 +698,11 @@ bool Supported() {
|
||||
bool Enforced() {
|
||||
// Wayland doesn't support positioning
|
||||
// and custom notifications don't work here
|
||||
return IsQualifiedDaemon() || IsWayland();
|
||||
return IsWayland();
|
||||
}
|
||||
|
||||
bool ByDefault() {
|
||||
return IsQualifiedDaemon();
|
||||
}
|
||||
|
||||
void Create(Window::Notifications::System *system) {
|
||||
|
@@ -35,6 +35,10 @@ bool Enforced() {
|
||||
return IsWayland();
|
||||
}
|
||||
|
||||
bool ByDefault() {
|
||||
return false;
|
||||
}
|
||||
|
||||
void Create(Window::Notifications::System *system) {
|
||||
if (Enforced()) {
|
||||
using DummyManager = Window::Notifications::DummyManager;
|
||||
|
Reference in New Issue
Block a user