From cf55e2613314e27243c60395e58665b9309280c8 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Sat, 22 Feb 2025 19:58:07 +1100 Subject: config: use config file Config file at ~/.config/caelestia/shell.json --- src/modules/notifpopups.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/notifpopups.tsx') diff --git a/src/modules/notifpopups.tsx b/src/modules/notifpopups.tsx index 9e34549..f1ae9b6 100644 --- a/src/modules/notifpopups.tsx +++ b/src/modules/notifpopups.tsx @@ -40,7 +40,7 @@ export default () => ( ); // Limit number of popups - if (config.maxPopups > 0 && self.children.length > config.maxPopups) + if (config.maxPopups.get() > 0 && self.children.length > config.maxPopups.get()) map.values().next().value?.destroyWithAnims(); }); self.hook(notifd, "resolved", (_, id) => map.get(id)?.destroyWithAnims()); -- cgit v1.2.3-freya