fix #1336: saving disabled storage option

This commit is contained in:
antelle 2019-11-03 10:00:46 +01:00
parent 6dc459a64f
commit c655defe6d
2 changed files with 2 additions and 1 deletions

View File

@ -339,7 +339,7 @@ class SettingsGeneralView extends View {
const storage = Storage[$(e.target).data('storage')];
if (storage) {
storage.setEnabled(e.target.checked);
AppSettingsModel.storage.name = storage.enabled;
AppSettingsModel[storage.name] = storage.enabled;
this.$el
.find('.settings__general-' + storage.name)
.toggleClass('hide', !e.target.checked);

View File

@ -2,6 +2,7 @@ Release notes
-------------
##### v1.12.2 (TBD)
`-` fixed non-working updater
`-` fix #1336: saving disabled storage option
##### v1.12.1 (2019-10-27)
`-` fix #1324: duplicated shortcut editor in settings