mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-10-21 18:54:01 -04:00
fix(notifications): close popups when their screen stops showing them (#3844)
(cherry picked from commit b81954454a)
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user