Don't show auto-update dialog after decline on Win/Mac

This commit is contained in:
Alex Liebowitz 2018-01-24 15:42:49 -05:00
parent 76f6b1efa9
commit e98231fed3

View file

@ -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;
}