notifpopups: close all popups when notifs open
This commit is contained in:
parent
cf55e26133
commit
f561b77ee3
1 changed files with 4 additions and 1 deletions
|
|
@ -46,7 +46,10 @@ export default () => (
|
||||||
self.hook(notifd, "resolved", (_, id) => map.get(id)?.destroyWithAnims());
|
self.hook(notifd, "resolved", (_, id) => map.get(id)?.destroyWithAnims());
|
||||||
|
|
||||||
self.hook(App, "window-toggled", (_, window) => {
|
self.hook(App, "window-toggled", (_, window) => {
|
||||||
if (window.name === "notifications") notifsOpen = window.visible;
|
if (window.name === "notifications") {
|
||||||
|
notifsOpen = window.visible;
|
||||||
|
map.forEach(n => n.destroyWithAnims());
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// Change input region to child region so can click through empty space
|
// Change input region to child region so can click through empty space
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue