Skip to content

Commit

Permalink
Don't show auto-update dialog after decline on Win/Mac
Browse files Browse the repository at this point in the history
  • Loading branch information
alexliebowitz committed Jan 24, 2018
1 parent 76f6b1e commit e98231f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/renderer/redux/actions/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,13 @@ export function doCheckUpgradeAvailable() {
});

if (["win32", "darwin"].includes(process.platform)) {
// On Windows and Mac, updates happen silently
autoUpdater.checkForUpdates();
// On Windows and Mac, updates happen silently through
// electron-updater.
const autoUpdateDeclined = selectAutoUpdateDeclined(state);

if (!autoUpdateDeclined) {
autoUpdater.checkForUpdates();
}
return;
}

Expand Down

0 comments on commit e98231f

Please sign in to comment.