diff options
Diffstat (limited to 'src/stores/AppStore.ts')
-rw-r--r-- | src/stores/AppStore.ts | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/stores/AppStore.ts b/src/stores/AppStore.ts index a949bae1d..8c8454116 100644 --- a/src/stores/AppStore.ts +++ b/src/stores/AppStore.ts | |||
@@ -21,7 +21,7 @@ import TypedStore from './lib/TypedStore'; | |||
21 | import Request from './lib/Request'; | 21 | import Request from './lib/Request'; |
22 | import { CHECK_INTERVAL, DEFAULT_APP_SETTINGS } from '../config'; | 22 | import { CHECK_INTERVAL, DEFAULT_APP_SETTINGS } from '../config'; |
23 | import { cleanseJSObject } from '../jsUtils'; | 23 | import { cleanseJSObject } from '../jsUtils'; |
24 | import { isMac, isWindows, electronVersion, osRelease } from '../environment'; | 24 | import { isMac, electronVersion, osRelease } from '../environment'; |
25 | import { | 25 | import { |
26 | ferdiumVersion, | 26 | ferdiumVersion, |
27 | userDataPath, | 27 | userDataPath, |
@@ -408,11 +408,7 @@ export default class AppStore extends TypedStore { | |||
408 | } | 408 | } |
409 | 409 | ||
410 | @action _checkForUpdates() { | 410 | @action _checkForUpdates() { |
411 | if ( | 411 | if (this.isOnline && this.stores.settings.app.automaticUpdates) { |
412 | this.isOnline && | ||
413 | this.stores.settings.app.automaticUpdates && | ||
414 | (isMac || isWindows || process.env.APPIMAGE) | ||
415 | ) { | ||
416 | debug('_checkForUpdates: sending event to autoUpdate:check'); | 412 | debug('_checkForUpdates: sending event to autoUpdate:check'); |
417 | this.updateStatus = this.updateStatusTypes.CHECKING; | 413 | this.updateStatus = this.updateStatusTypes.CHECKING; |
418 | ipcRenderer.send('autoUpdate', { | 414 | ipcRenderer.send('autoUpdate', { |