From 80fd70de13402b94665a17453a8711cec6300337 Mon Sep 17 00:00:00 2001 From: Scott Nonnenberg Date: Fri, 21 Jul 2017 12:07:37 -0700 Subject: [PATCH] Don't show 'new update available' dialog if it's already showing FREEBIE --- app/auto_update.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/auto_update.js b/app/auto_update.js index e33964655..c2c2884b8 100644 --- a/app/auto_update.js +++ b/app/auto_update.js @@ -19,7 +19,13 @@ function checkForUpdates() { autoUpdater.checkForUpdates(); } +var showingDialog = false; function showUpdateDialog() { + if (showingDialog) { + return; + } + showingDialog = true; + const options = { type: 'info', buttons: [ @@ -38,6 +44,8 @@ function showUpdateDialog() { windowState.markShouldQuit(); autoUpdater.quitAndInstall(); } + + showingDialog = false; }); }