Skip to content

Commit

Permalink
Only check for updates for platforms that support autoupdate.
Browse files Browse the repository at this point in the history
Closes #1120.
Closes #1084.
  • Loading branch information
imolorhe committed Feb 2, 2020
1 parent 88d0473 commit a97d9ef
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/altair-electron/src/updates.js
Expand Up @@ -109,6 +109,15 @@ const setupAutoUpdates = () => {
// });

const checkForUpdates = (menuItem) => {
if (
autoUpdater.app
&& autoUpdater.app.appUpdateConfigPath
&& !fs.existsSync(autoUpdater.app.appUpdateConfigPath)
) {
// Don't check for updates if update config is not found (auto-update via electron is not supported)
return;
}

updater = menuItem;
updater.enabled = false;
isSilentCheck = false;
Expand Down

0 comments on commit a97d9ef

Please sign in to comment.