summaryrefslogtreecommitdiffhomepage
path: root/gui
diff options
context:
space:
mode:
authorOskar Nyberg <oskar@mullvad.net>2020-07-15 13:25:20 +0200
committerOskar Nyberg <oskar@mullvad.net>2020-07-22 15:49:04 +0200
commitf694c41fc4bd5b16b63c2ec6edb83d0dcce75d37 (patch)
tree957d075516218d74ec00e0511419b1aaf9af2969 /gui
parent949a10c45541112c8066ea2cbb2d0692024e8ed9 (diff)
downloadmullvadvpn-f694c41fc4bd5b16b63c2ec6edb83d0dcce75d37.tar.xz
mullvadvpn-f694c41fc4bd5b16b63c2ec6edb83d0dcce75d37.zip
Make criticial notifications persistent
Diffstat (limited to 'gui')
-rw-r--r--gui/src/main/notification-controller.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/gui/src/main/notification-controller.ts b/gui/src/main/notification-controller.ts
index 387b7fc634..c011ce7665 100644
--- a/gui/src/main/notification-controller.ts
+++ b/gui/src/main/notification-controller.ts
@@ -98,7 +98,9 @@ export default class NotificationController {
this.addPendingNotification(notification);
notification.show();
- setTimeout(() => notification.close(), 4000);
+ if (!systemNotification.critical) {
+ setTimeout(() => notification.close(), 4000);
+ }
return notification;
} else {
@@ -112,6 +114,7 @@ export default class NotificationController {
body: systemNotification.message,
silent: true,
icon: this.notificationIcon,
+ timeoutType: systemNotification.critical ? 'never' : 'default',
});
if (systemNotification.action) {