diff options
Diffstat (limited to 'src/stores')
-rw-r--r-- | src/stores/AppStore.js | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/stores/AppStore.js b/src/stores/AppStore.js index fd7c58dfc..54a3e4d92 100644 --- a/src/stores/AppStore.js +++ b/src/stores/AppStore.js | |||
@@ -17,7 +17,7 @@ import { readJsonSync } from 'fs-extra'; | |||
17 | import Store from './lib/Store'; | 17 | import Store from './lib/Store'; |
18 | import Request from './lib/Request'; | 18 | import Request from './lib/Request'; |
19 | import { CHECK_INTERVAL, DEFAULT_APP_SETTINGS } from '../config'; | 19 | import { CHECK_INTERVAL, DEFAULT_APP_SETTINGS } from '../config'; |
20 | import { isMac, electronVersion, osRelease } from '../environment'; | 20 | import { isMac, isWindows, electronVersion, osRelease } from '../environment'; |
21 | import { ferdiVersion, userDataPath, ferdiLocale } from '../environment-remote'; | 21 | import { ferdiVersion, userDataPath, ferdiLocale } from '../environment-remote'; |
22 | import { generatedTranslations } from '../i18n/translations'; | 22 | import { generatedTranslations } from '../i18n/translations'; |
23 | import { getLocale } from '../helpers/i18n-helpers'; | 23 | import { getLocale } from '../helpers/i18n-helpers'; |
@@ -382,15 +382,16 @@ export default class AppStore extends Store { | |||
382 | } | 382 | } |
383 | 383 | ||
384 | @action _checkForUpdates() { | 384 | @action _checkForUpdates() { |
385 | if (this.isOnline) { | 385 | if (this.isOnline && this.stores.settings.app.automaticUpdates && (isMac || isWindows || process.env.APPIMAGE)) { |
386 | debug('_checkForUpdates: sending event to autoUpdate:check'); | 386 | debug('_checkForUpdates: sending event to autoUpdate:check'); |
387 | this.updateStatus = this.updateStatusTypes.CHECKING; | 387 | this.updateStatus = this.updateStatusTypes.CHECKING; |
388 | ipcRenderer.send('autoUpdate', { | 388 | ipcRenderer.send('autoUpdate', { |
389 | action: 'check', | 389 | action: 'check', |
390 | }); | 390 | }); |
391 | if (this.stores.settings.app.automaticUpdates) { | 391 | } |
392 | this.actions.recipe.update(); | 392 | |
393 | } | 393 | if (this.isOnline && this.stores.settings.app.automaticUpdates) { |
394 | this.actions.recipe.update(); | ||
394 | } | 395 | } |
395 | } | 396 | } |
396 | 397 | ||