diff options
| author | Gregor Kleen <gkleen@yggdrasil.li> | 2025-09-15 21:45:36 +0200 |
|---|---|---|
| committer | Gregor Kleen <gkleen@yggdrasil.li> | 2025-09-15 21:45:36 +0200 |
| commit | 5cee7108d60ca11ccba1b19ccad74664f6f96cf5 (patch) | |
| tree | d71ae968eb24264111992d59f92e6e64058c317f /accounts/gkleen@sif/shell | |
| parent | 9d5fca89bb1a01f2b44979fac32ce97045f99381 (diff) | |
| download | nixos-5cee7108d60ca11ccba1b19ccad74664f6f96cf5.tar nixos-5cee7108d60ca11ccba1b19ccad74664f6f96cf5.tar.gz nixos-5cee7108d60ca11ccba1b19ccad74664f6f96cf5.tar.bz2 nixos-5cee7108d60ca11ccba1b19ccad74664f6f96cf5.tar.xz nixos-5cee7108d60ca11ccba1b19ccad74664f6f96cf5.zip | |
...
Diffstat (limited to 'accounts/gkleen@sif/shell')
| -rw-r--r-- | accounts/gkleen@sif/shell/quickshell/Services/NotificationManager.qml | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/accounts/gkleen@sif/shell/quickshell/Services/NotificationManager.qml b/accounts/gkleen@sif/shell/quickshell/Services/NotificationManager.qml index 531d26c3..f02d1695 100644 --- a/accounts/gkleen@sif/shell/quickshell/Services/NotificationManager.qml +++ b/accounts/gkleen@sif/shell/quickshell/Services/NotificationManager.qml | |||
| @@ -69,14 +69,14 @@ Singleton { | |||
| 69 | 69 | ||
| 70 | required property QtObject parent | 70 | required property QtObject parent |
| 71 | required property int expirationTime | 71 | required property int expirationTime |
| 72 | property bool expired: false | ||
| 73 | 72 | ||
| 74 | property list<QtObject> data: [ | 73 | property list<QtObject> data: [ |
| 75 | Timer { | 74 | Timer { |
| 76 | running: root.active && !timer.expired | 75 | running: root.active && !timer.expired |
| 77 | interval: timer.expirationTime | 76 | interval: timer.expirationTime |
| 78 | onTriggered: { | 77 | onTriggered: { |
| 79 | timer.expired = true; | 78 | timer.parent.expirationTimer.destroy(); |
| 79 | timer.parent.expirationTimer = null; | ||
| 80 | timer.parent.expire(); | 80 | timer.parent.expire(); |
| 81 | } | 81 | } |
| 82 | } | 82 | } |
| @@ -148,8 +148,10 @@ Singleton { | |||
| 148 | } | 148 | } |
| 149 | 149 | ||
| 150 | function onNotificationClosed(notification, reason) { | 150 | function onNotificationClosed(notification, reason) { |
| 151 | while (root.history.length >= root.historyLimit) | 151 | while (root.history.length >= root.historyLimit) { |
| 152 | root.history[0].lock.locked = false; | ||
| 152 | root.history.shift(); | 153 | root.history.shift(); |
| 154 | } | ||
| 153 | 155 | ||
| 154 | root.history.push({ | 156 | root.history.push({ |
| 155 | lock: notificationLock.createObject(root, { locked: true, object: notification }), | 157 | lock: notificationLock.createObject(root, { locked: true, object: notification }), |
