notifs: clear actually close notifs

This commit is contained in:
2 * r + 2 * t 2025-10-01 13:08:01 +10:00 committed by GitHub
parent 1ec08d3bb2
commit 0691dfb95f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -108,8 +108,8 @@ Singleton {
name: "clearNotifs"
description: "Clear all notifications"
onPressed: {
for (const notif of root.list)
notif.popup = false;
for (const notif of root.list.slice())
notif.close();
}
}
@ -117,8 +117,8 @@ Singleton {
target: "notifs"
function clear(): void {
for (const notif of root.list)
notif.popup = false;
for (const notif of root.list.slice())
notif.close();
}
function isDndEnabled(): bool {