diff options
| author | Gregor Kleen <gkleen@yggdrasil.li> | 2025-09-14 15:43:21 +0200 |
|---|---|---|
| committer | Gregor Kleen <gkleen@yggdrasil.li> | 2025-09-14 15:43:21 +0200 |
| commit | 0746d652c52f9eb8486ee0b869ad348274d0a306 (patch) | |
| tree | b6d5f5fae125fcbfa10b5bb0c8eb03f848e88957 /accounts/gkleen@sif/shell/quickshell/Services | |
| parent | 42b5eab8eb49c0b2774bd5347de72d493cc437e1 (diff) | |
| download | nixos-0746d652c52f9eb8486ee0b869ad348274d0a306.tar nixos-0746d652c52f9eb8486ee0b869ad348274d0a306.tar.gz nixos-0746d652c52f9eb8486ee0b869ad348274d0a306.tar.bz2 nixos-0746d652c52f9eb8486ee0b869ad348274d0a306.tar.xz nixos-0746d652c52f9eb8486ee0b869ad348274d0a306.zip | |
...
Diffstat (limited to 'accounts/gkleen@sif/shell/quickshell/Services')
| -rw-r--r-- | accounts/gkleen@sif/shell/quickshell/Services/NotificationManager.qml | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/accounts/gkleen@sif/shell/quickshell/Services/NotificationManager.qml b/accounts/gkleen@sif/shell/quickshell/Services/NotificationManager.qml index 19b8b606..09d45719 100644 --- a/accounts/gkleen@sif/shell/quickshell/Services/NotificationManager.qml +++ b/accounts/gkleen@sif/shell/quickshell/Services/NotificationManager.qml | |||
| @@ -7,7 +7,7 @@ import Quickshell.Services.Notifications | |||
| 7 | Singleton { | 7 | Singleton { |
| 8 | id: root | 8 | id: root |
| 9 | 9 | ||
| 10 | readonly property bool active: !lockscreenActive && !displayInhibited | 10 | readonly property bool active: !root.lockscreenActive && !root.displayInhibited |
| 11 | property bool lockscreenActive: false | 11 | property bool lockscreenActive: false |
| 12 | property bool displayInhibited: false | 12 | property bool displayInhibited: false |
| 13 | property alias trackedNotifications: server.trackedNotifications | 13 | property alias trackedNotifications: server.trackedNotifications |
| @@ -70,13 +70,9 @@ Singleton { | |||
| 70 | required property int expirationTime | 70 | required property int expirationTime |
| 71 | property list<QtObject> data: [ | 71 | property list<QtObject> data: [ |
| 72 | Timer { | 72 | Timer { |
| 73 | running: root.active | 73 | running: root.active && !timer.parent.retained |
| 74 | interval: timer.expirationTime | 74 | interval: timer.expirationTime |
| 75 | onTriggered: { | 75 | onTriggered: timer.parent.expire() |
| 76 | timer.parent.expirationTimer = null; | ||
| 77 | timer.parent.expire(); | ||
| 78 | this.deleteLater(); | ||
| 79 | } | ||
| 80 | } | 76 | } |
| 81 | ] | 77 | ] |
| 82 | } | 78 | } |
