notifpopups: replace notifications
Allow replacing
This commit is contained in:
parent
a53389c8b5
commit
67f4526a9a
1 changed files with 2 additions and 1 deletions
|
|
@ -148,7 +148,8 @@ export default () => (
|
||||||
const notification = notifd.get_notification(id);
|
const notification = notifd.get_notification(id);
|
||||||
|
|
||||||
const popup = (<NotifPopup notification={notification} />) as NotifPopup;
|
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);
|
map.set(notification.id, popup);
|
||||||
|
|
||||||
self.add(
|
self.add(
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue