From 1c8ce46f257e19b42601016ce8cded0cef511ec4 Mon Sep 17 00:00:00 2001 From: Ethan Todd <30243637+ewtodd@users.noreply.github.com> Date: Tue, 6 Jan 2026 09:39:33 -0500 Subject: [PATCH] notifications: fix notifications being completely transient if history is disabled (#1284) --- quickshell/Services/NotificationService.qml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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); });