diff options
Diffstat (limited to 'accounts/gkleen@sif/shell/quickshell/Services/NotificationManager.qml')
| -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 }), |
