fix: remove expired notifications from toasts

This commit is contained in:
nydragon 2025-02-08 13:23:48 +01:00
parent 51f3bdd7cb
commit 603e1c09b3
Signed by: nydragon
SSH key fingerprint: SHA256:WcjW5NJPQ8Dx4uQDmoIlVPLWE27Od3fxoe0IUvuoPHE

View file

@ -46,6 +46,15 @@ PanelWindow {
notif: n
});
});
Notifications.incomingRemoved.connect(n => {
for (let i = 0; i < data.count; ++i) {
let dat = data.get(i);
if (data.id == n) {
data.visible = false;
return;
}
}
});
}
}
addDisplaced: Transition {