notifs: clear actually close notifs
This commit is contained in:
parent
1ec08d3bb2
commit
0691dfb95f
1 changed files with 4 additions and 4 deletions
|
|
@ -108,8 +108,8 @@ Singleton {
|
||||||
name: "clearNotifs"
|
name: "clearNotifs"
|
||||||
description: "Clear all notifications"
|
description: "Clear all notifications"
|
||||||
onPressed: {
|
onPressed: {
|
||||||
for (const notif of root.list)
|
for (const notif of root.list.slice())
|
||||||
notif.popup = false;
|
notif.close();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -117,8 +117,8 @@ Singleton {
|
||||||
target: "notifs"
|
target: "notifs"
|
||||||
|
|
||||||
function clear(): void {
|
function clear(): void {
|
||||||
for (const notif of root.list)
|
for (const notif of root.list.slice())
|
||||||
notif.popup = false;
|
notif.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
function isDndEnabled(): bool {
|
function isDndEnabled(): bool {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue