diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-01-15 00:01:31 +1100 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-01-15 00:01:31 +1100 |
| commit | 67f4526a9ad3d319c0b81fa129d6cd741d0a1f56 (patch) | |
| tree | e1a7d9b45aecb25fac00527eda2d47dc3745c401 | |
| parent | bar: power button works (diff) | |
| download | caelestia-shell-67f4526a9ad3d319c0b81fa129d6cd741d0a1f56.tar.gz caelestia-shell-67f4526a9ad3d319c0b81fa129d6cd741d0a1f56.tar.bz2 caelestia-shell-67f4526a9ad3d319c0b81fa129d6cd741d0a1f56.zip | |
notifpopups: replace notifications
Allow replacing
| -rw-r--r-- | modules/notifpopups.tsx | 3 |
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( |