From f561b77ee375b08b1050d3bb53106193e0bd9cdf Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Sat, 22 Feb 2025 20:19:57 +1100 Subject: notifpopups: close all popups when notifs open --- src/modules/notifpopups.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/modules/notifpopups.tsx b/src/modules/notifpopups.tsx index f1ae9b6..53217c0 100644 --- a/src/modules/notifpopups.tsx +++ b/src/modules/notifpopups.tsx @@ -46,7 +46,10 @@ export default () => ( self.hook(notifd, "resolved", (_, id) => map.get(id)?.destroyWithAnims()); 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 -- cgit v1.2.3-freya