summaryrefslogtreecommitdiff
path: root/src/modules/notifpopups.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/notifpopups.tsx')
-rw-r--r--src/modules/notifpopups.tsx2
1 files changed, 1 insertions, 1 deletions
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());