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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user