diff --git a/quickshell/Services/NotificationService.qml b/quickshell/Services/NotificationService.qml index e7d82141..9561c932 100644 --- a/quickshell/Services/NotificationService.qml +++ b/quickshell/Services/NotificationService.qml @@ -491,13 +491,13 @@ Singleton { if (wrapper) { root.allWrappers.push(wrapper); - const shouldSave = !isTransient && _shouldSaveToHistory(notif.urgency); - if (shouldSave) { + if (!isTransient) { root.notifications.push(wrapper); _trimStored(); - root.addToHistory(wrapper); + if (_shouldSaveToHistory(notif.urgency)) { + root.addToHistory(wrapper); + } } - Qt.callLater(() => { _initWrapperPersistence(wrapper); });