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: ({
|
property var notifications: ({
|
||||||
enable: true,
|
enable: true,
|
||||||
timeout: 3000,
|
timeout: 3000,
|
||||||
popups: true,
|
|
||||||
maxPopups: 4
|
maxPopups: 4
|
||||||
})
|
})
|
||||||
property var mpris: ({
|
property var mpris: ({
|
||||||
|
|
|
||||||
|
|
@ -98,11 +98,6 @@ in
|
||||||
default = 3000;
|
default = 3000;
|
||||||
description = "Notification popup timeout in milliseconds.";
|
description = "Notification popup timeout in milliseconds.";
|
||||||
};
|
};
|
||||||
popups = lib.mkOption {
|
|
||||||
type = lib.types.bool;
|
|
||||||
default = true;
|
|
||||||
description = "Show notification popups.";
|
|
||||||
};
|
|
||||||
maxPopups = lib.mkOption {
|
maxPopups = lib.mkOption {
|
||||||
type = lib.types.int;
|
type = lib.types.int;
|
||||||
default = 4;
|
default = 4;
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ ShellRoot {
|
||||||
}
|
}
|
||||||
|
|
||||||
LazyLoader {
|
LazyLoader {
|
||||||
active: Modules.notifications.popups
|
active: (Modules.notifications.maxPopups ?? 4) > 0
|
||||||
NotifPopup {
|
NotifPopup {
|
||||||
screen: scope.modelData
|
screen: scope.modelData
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue