summaryrefslogtreecommitdiffhomepage
path: root/gui/src
diff options
context:
space:
mode:
Diffstat (limited to 'gui/src')
-rw-r--r--gui/src/main/notification-controller.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/gui/src/main/notification-controller.ts b/gui/src/main/notification-controller.ts
index 6fbe6d4f19..cbc1afd66b 100644
--- a/gui/src/main/notification-controller.ts
+++ b/gui/src/main/notification-controller.ts
@@ -130,7 +130,9 @@ export default class NotificationController {
) {
this.activeNotifications.forEach((notification) => {
if (notification.specification.category === category) {
+ notification.notification.removeAllListeners('close');
notification.notification.close();
+ this.activeNotifications.delete(notification);
}
});
this.dismissedNotifications.forEach((notification) => {
@@ -248,7 +250,7 @@ export default class NotificationController {
private addActiveNotification(notification: Notification) {
notification.notification.on('close', () => {
- this.dismissedNotifications.add({ ...notification.specification });
+ this.dismissedNotifications.add(notification.specification);
this.activeNotifications.delete(notification);
this.updateNotificationIcon();
});