From da70434ebaeb829ed730ab247906c9433d666d2b Mon Sep 17 00:00:00 2001 From: bbedward Date: Sun, 27 Jul 2025 18:37:56 -0400 Subject: [PATCH] notifications: fix stuck externally dismissed notifs --- Modules/Notifications/Popup/NotificationPopup.qml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Modules/Notifications/Popup/NotificationPopup.qml b/Modules/Notifications/Popup/NotificationPopup.qml index 006acde7..17b00ae9 100644 --- a/Modules/Notifications/Popup/NotificationPopup.qml +++ b/Modules/Notifications/Popup/NotificationPopup.qml @@ -449,9 +449,23 @@ PanelWindow { } } } + + Connections { + id: notificationConn + target: (win.notificationData && win.notificationData.notification && win.notificationData.notification.Retainable) || null + ignoreUnknownSignals: true + enabled: !win._isDestroying + + function onDropped() { + if (!win._isDestroying && !win.exiting) { + forceExit(); + } + } + } onNotificationDataChanged: { if (!_isDestroying) { wrapperConn.target = win.notificationData || null; + notificationConn.target = (win.notificationData && win.notificationData.notification && win.notificationData.notification.Retainable) || null; } }