From 9d5fca89bb1a01f2b44979fac32ce97045f99381 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Mon, 15 Sep 2025 21:36:45 +0200 Subject: ... --- accounts/gkleen@sif/shell/quickshell/Services/NotificationManager.qml | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'accounts/gkleen@sif/shell/quickshell') diff --git a/accounts/gkleen@sif/shell/quickshell/Services/NotificationManager.qml b/accounts/gkleen@sif/shell/quickshell/Services/NotificationManager.qml index c0e9458e..531d26c3 100644 --- a/accounts/gkleen@sif/shell/quickshell/Services/NotificationManager.qml +++ b/accounts/gkleen@sif/shell/quickshell/Services/NotificationManager.qml @@ -58,6 +58,7 @@ Singleton { { "test": { "appName": "Element" }, "group-by": [ "summary" ] } ]; + property int historyLimit: 100 property var history: [] Component { @@ -147,6 +148,9 @@ Singleton { } function onNotificationClosed(notification, reason) { + while (root.history.length >= root.historyLimit) + root.history.shift(); + root.history.push({ lock: notificationLock.createObject(root, { locked: true, object: notification }), notification: notification -- cgit v1.2.3