1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-08-07 14:08:29 -04:00

feat(ipc): add 'dismiss' function to notifications ipc (#2942)

Allow to dismiss the last visible notification only instead of resorting
directly to dismissAllPopups.
This commit is contained in:
euletheia
2026-07-27 15:13:07 +00:00
committed by GitHub
parent c67b185076
commit 33677150b1
2 changed files with 15 additions and 0 deletions
@@ -889,6 +889,12 @@ Singleton {
NotifWrapper {}
}
function dismissLastNotification() {
const w = visibleNotifications[visibleNotifications.length - 1];
if (w)
dismissNotification(w);
}
function dismissAllPopups() {
for (const w of visibleNotifications) {
if (w) {