diff options
author | 2020-04-09 10:28:07 +0200 | |
---|---|---|
committer | 2020-04-09 09:28:07 +0100 | |
commit | f013899bd27a7072f384e9c49e2179c2d61e99f8 (patch) | |
tree | 95462334bbc15e267a6456df878e050e9d1171ee /src/stores | |
parent | Add support for Adaptable Dark Mode on Windows (#548) (diff) | |
download | ferdium-app-f013899bd27a7072f384e9c49e2179c2d61e99f8.tar.gz ferdium-app-f013899bd27a7072f384e9c49e2179c2d61e99f8.tar.zst ferdium-app-f013899bd27a7072f384e9c49e2179c2d61e99f8.zip |
Refactor updates settings (#506)
* Reorder updates toggle buttons
* Updated 'Disable updates' message to 'Enable automatic updates'
* Update 'noUpdates' to 'automaticUpdates'
* Update 'noUpdates' to 'automaticUpdates'
* Add condition for 'Include beta version' to show
* Enable automatic updates by default
* Update file so when automaticUpdates is true automatic updates are enabled
* Fix conditions with enableUpdate
* Apply code style
* Fix wrong condition with enableUpdate
* Delete unsued variable 'server'
* Apply style code
* Commit changes to submodule 'recipes'
* Update default message to 'Enable updates' from 'Disable updates'
* Update text to 'Enable updates' from 'Enable automatic update'
* Add migration for updates settings
* Update default messages to 'Enable updates' from 'Disable updates'
* Remove empty line
* Check for updates was disabled when updates were enabled
* Avoid superfluous break line when updates are disabled
* Add fragments to up-to-date message
* Add fragments to up-to-date message
* Remove file from previous commit
* Remove extra line
* Add 'Show draggable area on window' to en-US.json file
* Apply prepare-code script changes
Co-authored-by: Amine <amine@mouafik.fr>
Diffstat (limited to 'src/stores')
-rw-r--r-- | src/stores/SettingsStore.js | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/stores/SettingsStore.js b/src/stores/SettingsStore.js index f83bc21ad..799ba3f5a 100644 --- a/src/stores/SettingsStore.js +++ b/src/stores/SettingsStore.js | |||
@@ -282,5 +282,23 @@ export default class SettingsStore extends Store { | |||
282 | 282 | ||
283 | debug('Migrated old todo setting to new custom todo setting'); | 283 | debug('Migrated old todo setting to new custom todo setting'); |
284 | } | 284 | } |
285 | |||
286 | if (!this.all.migration['5.4.4-beta.4-settings']) { | ||
287 | this.actions.settings.update({ | ||
288 | type: 'app', | ||
289 | data: { | ||
290 | automaticUpdates: !(legacySettings.noUpdates), | ||
291 | }, | ||
292 | }); | ||
293 | |||
294 | this.actions.settings.update({ | ||
295 | type: 'migration', | ||
296 | data: { | ||
297 | '5.4.4-beta.4-settings': true, | ||
298 | }, | ||
299 | }); | ||
300 | |||
301 | debug('Migrated updates settings'); | ||
302 | } | ||
285 | } | 303 | } |
286 | } | 304 | } |