summaryrefslogtreecommitdiff
path: root/modules/notifpopups.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'modules/notifpopups.tsx')
-rw-r--r--modules/notifpopups.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/notifpopups.tsx b/modules/notifpopups.tsx
index 1830079..c3441a9 100644
--- a/modules/notifpopups.tsx
+++ b/modules/notifpopups.tsx
@@ -148,7 +148,8 @@ export default () => (
const notification = notifd.get_notification(id);
const popup = (<NotifPopup notification={notification} />) as NotifPopup;
- popup.connect("destroy", () => map.delete(notification.id));
+ popup.connect("destroy", () => map.get(notification.id) === popup && map.delete(notification.id));
+ map.get(notification.id)?.destroyWithAnims();
map.set(notification.id, popup);
self.add(