diff options
Diffstat (limited to 'gui/src/main')
| -rw-r--r-- | gui/src/main/notification-controller.ts | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gui/src/main/notification-controller.ts b/gui/src/main/notification-controller.ts index 771e788722..4b0f59fbf6 100644 --- a/gui/src/main/notification-controller.ts +++ b/gui/src/main/notification-controller.ts @@ -109,6 +109,16 @@ export default class NotificationController { }); } + public notifyKeyGenerationFailed() { + const notification = new Notification({ + title: this.notificationTitle, + body: messages.pgettext('notifications', 'Wireguard key generation failed'), + silent: true, + icon: this.notificationIcon, + }); + this.scheduleNotification(notification); + } + public cancelPendingNotifications() { for (const notification of this.pendingNotifications) { notification.close(); |
