diff options
author | kytwb <kytwb@pm.me> | 2021-12-24 13:02:29 +0100 |
---|---|---|
committer | kytwb <kytwb@pm.me> | 2021-12-24 13:02:29 +0100 |
commit | c65bec3e5ccfaa8cdd8a864a7f9b70aba9ddab1e (patch) | |
tree | e8d89cad355d0faa62a0163ed53c18870892903a /src/stores | |
parent | docs: add leofiore as a contributor for bug (#2360) (diff) | |
download | ferdium-app-c65bec3e5ccfaa8cdd8a864a7f9b70aba9ddab1e.tar.gz ferdium-app-c65bec3e5ccfaa8cdd8a864a7f9b70aba9ddab1e.tar.zst ferdium-app-c65bec3e5ccfaa8cdd8a864a7f9b70aba9ddab1e.zip |
#2359 Disable available updates behaviour based on automaticUpdates
Diffstat (limited to 'src/stores')
-rw-r--r-- | src/stores/AppStore.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/stores/AppStore.js b/src/stores/AppStore.js index eca347153..2698749fc 100644 --- a/src/stores/AppStore.js +++ b/src/stores/AppStore.js | |||
@@ -164,7 +164,7 @@ export default class AppStore extends Store { | |||
164 | ipcRenderer.on('autoUpdate', (event, data) => { | 164 | ipcRenderer.on('autoUpdate', (event, data) => { |
165 | if (data.available) { | 165 | if (data.available) { |
166 | this.updateStatus = this.updateStatusTypes.AVAILABLE; | 166 | this.updateStatus = this.updateStatusTypes.AVAILABLE; |
167 | if (isMac) { | 167 | if (isMac && this.stores.settings.app.automaticUpdates) { |
168 | app.dock.bounce(); | 168 | app.dock.bounce(); |
169 | } | 169 | } |
170 | } | 170 | } |
@@ -175,7 +175,7 @@ export default class AppStore extends Store { | |||
175 | 175 | ||
176 | if (data.downloaded) { | 176 | if (data.downloaded) { |
177 | this.updateStatus = this.updateStatusTypes.DOWNLOADED; | 177 | this.updateStatus = this.updateStatusTypes.DOWNLOADED; |
178 | if (isMac) { | 178 | if (isMac && this.stores.settings.app.automaticUpdates) { |
179 | app.dock.bounce(); | 179 | app.dock.bounce(); |
180 | } | 180 | } |
181 | } | 181 | } |