diff options
author | André Oliveira <37463445+SpecialAro@users.noreply.github.com> | 2022-07-19 12:52:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-19 12:52:31 +0100 |
commit | 3bb1ca7825a0381ddd8dbe7f44f7dcf4a788b165 (patch) | |
tree | 6b414b9ef3be7656da1717b0d6def62e95d1fb90 /src/stores/AppStore.ts | |
parent | fix: remove autoHibernate (diff) | |
download | ferdium-app-3bb1ca7825a0381ddd8dbe7f44f7dcf4a788b165.tar.gz ferdium-app-3bb1ca7825a0381ddd8dbe7f44f7dcf4a788b165.tar.zst ferdium-app-3bb1ca7825a0381ddd8dbe7f44f7dcf4a788b165.zip |
Feature: Add Release Notes (#491)
Co-authored-by: Vijay A <vraravam@users.noreply.github.com>
Co-authored-by: Ricardo Cino <ricardo@cino.io>
Diffstat (limited to 'src/stores/AppStore.ts')
-rw-r--r-- | src/stores/AppStore.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/stores/AppStore.ts b/src/stores/AppStore.ts index 116e64756..af1a0daae 100644 --- a/src/stores/AppStore.ts +++ b/src/stores/AppStore.ts | |||
@@ -82,6 +82,8 @@ export default class AppStore extends TypedStore { | |||
82 | 82 | ||
83 | @observable updateStatus = ''; | 83 | @observable updateStatus = ''; |
84 | 84 | ||
85 | @observable updateVersion = ''; | ||
86 | |||
85 | @observable locale = ferdiumLocale; | 87 | @observable locale = ferdiumLocale; |
86 | 88 | ||
87 | @observable isSystemMuteOverridden = false; | 89 | @observable isSystemMuteOverridden = false; |
@@ -94,7 +96,8 @@ export default class AppStore extends TypedStore { | |||
94 | 96 | ||
95 | @observable isFocused = true; | 97 | @observable isFocused = true; |
96 | 98 | ||
97 | @observable lockingFeatureEnabled = DEFAULT_APP_SETTINGS.lockingFeatureEnabled; | 99 | @observable lockingFeatureEnabled = |
100 | DEFAULT_APP_SETTINGS.lockingFeatureEnabled; | ||
98 | 101 | ||
99 | @observable launchInBackground = DEFAULT_APP_SETTINGS.autoLaunchInBackground; | 102 | @observable launchInBackground = DEFAULT_APP_SETTINGS.autoLaunchInBackground; |
100 | 103 | ||
@@ -181,6 +184,7 @@ export default class AppStore extends TypedStore { | |||
181 | ipcRenderer.on('autoUpdate', (_, data) => { | 184 | ipcRenderer.on('autoUpdate', (_, data) => { |
182 | if (this.updateStatus !== this.updateStatusTypes.FAILED) { | 185 | if (this.updateStatus !== this.updateStatusTypes.FAILED) { |
183 | if (data.available) { | 186 | if (data.available) { |
187 | this.updateVersion = data.version; | ||
184 | this.updateStatus = this.updateStatusTypes.AVAILABLE; | 188 | this.updateStatus = this.updateStatusTypes.AVAILABLE; |
185 | if (isMac && this.stores.settings.app.automaticUpdates) { | 189 | if (isMac && this.stores.settings.app.automaticUpdates) { |
186 | app.dock.bounce(); | 190 | app.dock.bounce(); |