diff options
Diffstat (limited to 'accounts/gkleen@sif/shell/quickshell/Services')
| -rw-r--r-- | accounts/gkleen@sif/shell/quickshell/Services/NotificationManager.qml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/accounts/gkleen@sif/shell/quickshell/Services/NotificationManager.qml b/accounts/gkleen@sif/shell/quickshell/Services/NotificationManager.qml index 2199ccdf..001ffcf5 100644 --- a/accounts/gkleen@sif/shell/quickshell/Services/NotificationManager.qml +++ b/accounts/gkleen@sif/shell/quickshell/Services/NotificationManager.qml | |||
| @@ -7,6 +7,8 @@ import Quickshell.Services.Notifications | |||
| 7 | Singleton { | 7 | Singleton { |
| 8 | id: root | 8 | id: root |
| 9 | 9 | ||
| 10 | readonly property bool active: !lockscreenActive && !displayInhibited | ||
| 11 | property bool lockscreenActive: false | ||
| 10 | property bool displayInhibited: false | 12 | property bool displayInhibited: false |
| 11 | property alias trackedNotifications: server.trackedNotifications | 13 | property alias trackedNotifications: server.trackedNotifications |
| 12 | readonly property var groups: { | 14 | readonly property var groups: { |
| @@ -68,7 +70,7 @@ Singleton { | |||
| 68 | required property int expirationTime | 70 | required property int expirationTime |
| 69 | property list<QtObject> data: [ | 71 | property list<QtObject> data: [ |
| 70 | Timer { | 72 | Timer { |
| 71 | running: !root.displayInhibited | 73 | running: root.active |
| 72 | interval: timer.expirationTime | 74 | interval: timer.expirationTime |
| 73 | onTriggered: timer.parent.expire() | 75 | onTriggered: timer.parent.expire() |
| 74 | } | 76 | } |
