summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--gui/packages/desktop/src/renderer/lib/notification-controller.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/gui/packages/desktop/src/renderer/lib/notification-controller.js b/gui/packages/desktop/src/renderer/lib/notification-controller.js
index 9cb2f925dc..0133863382 100644
--- a/gui/packages/desktop/src/renderer/lib/notification-controller.js
+++ b/gui/packages/desktop/src/renderer/lib/notification-controller.js
@@ -47,6 +47,10 @@ export default class NotificationController {
}
notifyInconsistentVersion() {
+ if (remote.getCurrentWindow().isVisible()) {
+ return;
+ }
+
this._presentNotificationOnce('inconsistent-version', () => {
new Notification(remote.app.getName(), {
body: 'Inconsistent internal version information, please restart the app',
@@ -56,6 +60,10 @@ export default class NotificationController {
}
notifyUnsupportedVersion(upgradeVersion: string) {
+ if (remote.getCurrentWindow().isVisible()) {
+ return;
+ }
+
this._presentNotificationOnce('unsupported-version', () => {
const notification = new Notification(remote.app.getName(), {
body: `You are running an unsupported app version. Please upgrade to ${upgradeVersion} now to ensure your security`,