From 67f4526a9ad3d319c0b81fa129d6cd741d0a1f56 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Wed, 15 Jan 2025 00:01:31 +1100 Subject: notifpopups: replace notifications Allow replacing --- modules/notifpopups.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules') 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 = () 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( -- cgit v1.2.3-freya