From 5cee7108d60ca11ccba1b19ccad74664f6f96cf5 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Mon, 15 Sep 2025 21:45:36 +0200 Subject: ... --- .../gkleen@sif/shell/quickshell/Services/NotificationManager.qml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'accounts') 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 { required property QtObject parent required property int expirationTime - property bool expired: false property list data: [ Timer { running: root.active && !timer.expired interval: timer.expirationTime onTriggered: { - timer.expired = true; + timer.parent.expirationTimer.destroy(); + timer.parent.expirationTimer = null; timer.parent.expire(); } } @@ -148,8 +148,10 @@ Singleton { } function onNotificationClosed(notification, reason) { - while (root.history.length >= root.historyLimit) + while (root.history.length >= root.historyLimit) { + root.history[0].lock.locked = false; root.history.shift(); + } root.history.push({ lock: notificationLock.createObject(root, { locked: true, object: notification }), -- cgit v1.2.3