notifications: derive popup enabled from maxPopups > 0

This commit is contained in:
Damocles 2026-04-13 15:36:54 +02:00
parent 9358f8fe6e
commit a6d95ffdaf
3 changed files with 1 additions and 7 deletions

View file

@ -22,7 +22,6 @@ QtObject {
property var notifications: ({
enable: true,
timeout: 3000,
popups: true,
maxPopups: 4
})
property var mpris: ({

View file

@ -98,11 +98,6 @@ in
default = 3000;
description = "Notification popup timeout in milliseconds.";
};
popups = lib.mkOption {
type = lib.types.bool;
default = true;
description = "Show notification popups.";
};
maxPopups = lib.mkOption {
type = lib.types.int;
default = 4;

View file

@ -20,7 +20,7 @@ ShellRoot {
}
LazyLoader {
active: Modules.notifications.popups
active: (Modules.notifications.maxPopups ?? 4) > 0
NotifPopup {
screen: scope.modelData
}