notifications: derive popup enabled from maxPopups > 0
This commit is contained in:
parent
9358f8fe6e
commit
a6d95ffdaf
3 changed files with 1 additions and 7 deletions
|
|
@ -22,7 +22,6 @@ QtObject {
|
|||
property var notifications: ({
|
||||
enable: true,
|
||||
timeout: 3000,
|
||||
popups: true,
|
||||
maxPopups: 4
|
||||
})
|
||||
property var mpris: ({
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ ShellRoot {
|
|||
}
|
||||
|
||||
LazyLoader {
|
||||
active: Modules.notifications.popups
|
||||
active: (Modules.notifications.maxPopups ?? 4) > 0
|
||||
NotifPopup {
|
||||
screen: scope.modelData
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue