summaryrefslogtreecommitdiff
path: root/services/Notifs.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-10-01 13:08:01 +1000
committerGitHub <noreply@github.com>2025-10-01 13:08:01 +1000
commit0691dfb95f37b689be36ad4d7448b6e4140cb251 (patch)
tree9797094c2e25630de78603bab33c4f2719089ccc /services/Notifs.qml
parent[CI] chore: update flake (diff)
downloadcaelestia-shell-0691dfb95f37b689be36ad4d7448b6e4140cb251.tar.gz
caelestia-shell-0691dfb95f37b689be36ad4d7448b6e4140cb251.tar.bz2
caelestia-shell-0691dfb95f37b689be36ad4d7448b6e4140cb251.zip
notifs: clear actually close notifs
Diffstat (limited to 'services/Notifs.qml')
-rw-r--r--services/Notifs.qml8
1 files changed, 4 insertions, 4 deletions
diff --git a/services/Notifs.qml b/services/Notifs.qml
index 0012d4b..4a89c7f 100644
--- a/services/Notifs.qml
+++ b/services/Notifs.qml
@@ -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 {