mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2025-12-07 14:05:38 -05:00
notifications: fix stuck externally dismissed notifs
This commit is contained in:
@@ -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: {
|
onNotificationDataChanged: {
|
||||||
if (!_isDestroying) {
|
if (!_isDestroying) {
|
||||||
wrapperConn.target = win.notificationData || null;
|
wrapperConn.target = win.notificationData || null;
|
||||||
|
notificationConn.target = (win.notificationData && win.notificationData.notification && win.notificationData.notification.Retainable) || null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user