diff options
author | André Oliveira <37463445+SpecialAro@users.noreply.github.com> | 2022-06-29 16:58:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-29 15:58:24 +0000 |
commit | e48721b1d967c3efc08127cbdfa7efc3e321ecbd (patch) | |
tree | 141bb18fb0884e81e1ac2bfceb1a1f774f14916e /src/stores/AppStore.ts | |
parent | Fix Cache Settings subsection styling (diff) | |
download | ferdium-app-e48721b1d967c3efc08127cbdfa7efc3e321ecbd.tar.gz ferdium-app-e48721b1d967c3efc08127cbdfa7efc3e321ecbd.tar.zst ferdium-app-e48721b1d967c3efc08127cbdfa7efc3e321ecbd.zip |
Fix toggle for pre-release updates on Ubuntu (#393)
Fixes #391
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', { |