forked from Shinonome/dots-hyprland
Fix empty notifications (#1728)
This commit is contained in:
@@ -34,11 +34,9 @@ Singleton {
|
|||||||
property string urgency: notification?.urgency.toString() ?? "normal"
|
property string urgency: notification?.urgency.toString() ?? "normal"
|
||||||
property Timer timer
|
property Timer timer
|
||||||
|
|
||||||
readonly property Connections conn: Connections {
|
onNotificationChanged: {
|
||||||
target: wrapper?.notification?.Component ?? root // stupid warning aaaaaaa
|
if (notification === null) {
|
||||||
|
root.discardNotification(notificationId);
|
||||||
function onDestruction(): void {
|
|
||||||
wrapper.destroy();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user