diff options
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(); |