aboutsummaryrefslogtreecommitdiffstats
path: root/src/stores/AppStore.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/stores/AppStore.ts')
-rw-r--r--src/stores/AppStore.ts8
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';
21import Request from './lib/Request'; 21import Request from './lib/Request';
22import { CHECK_INTERVAL, DEFAULT_APP_SETTINGS } from '../config'; 22import { CHECK_INTERVAL, DEFAULT_APP_SETTINGS } from '../config';
23import { cleanseJSObject } from '../jsUtils'; 23import { cleanseJSObject } from '../jsUtils';
24import { isMac, isWindows, electronVersion, osRelease } from '../environment'; 24import { isMac, electronVersion, osRelease } from '../environment';
25import { 25import {
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', {