fix(notifications): close popups when their screen stops showing them (#3844)

(cherry picked from commit b81954454a)
This commit is contained in:
Marlon Kranz
2026-10-21 11:24:49 -04:00
committed by bbedward
parent 12e54e0225
commit ff45b3b4b2
@@ -557,6 +557,13 @@ QtObject {
}
Component.onCompleted: _sync(NotificationService.visibleNotifications)
Component.onDestruction: {
for (const p of popupWindows)
p?.destroy();
const screenName = manager.modelData?.name || "";
if (screenName)
ConnectedModeState.releaseSurface(screenName, "notification", "notification:" + screenName);
}
onPopupSpacingChanged: _repositionAll()
onNotificationConnectedModeChanged: _scheduleNotificationChromeSync()
onCloseGapNotificationsChanged: _scheduleNotificationChromeSync()