summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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) {