2
0
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:
Ilya Fedin
2021-01-25 03:16:32 +04:00
committed by John Preston
parent ec8ddb047d
commit 9b59e74d66
7 changed files with 33 additions and 8 deletions

View File

@@ -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) {

View File

@@ -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;