Browse Source

Fix changing autodownload settings

master
Eduard Kuzmenko 2 years ago committed by r4sas
parent
commit
970c4b08b5
  1. 3
      src/components/sidebarLeft/tabs/dataAndStorage.ts

3
src/components/sidebarLeft/tabs/dataAndStorage.ts

@ -61,7 +61,7 @@ export default class AppDataAndStorageTab extends SliderSuperTabEventable { @@ -61,7 +61,7 @@ export default class AppDataAndStorageTab extends SliderSuperTabEventable {
};
const openTab = (tabConstructor: SliderSuperTabEventableConstructable) => {
const tab = new tabConstructor(this.slider, true);
const tab = this.slider.createTab(tabConstructor);
tab.open();
this.listenerSetter.add(tab.eventListener)('destroy', () => {
@ -109,6 +109,7 @@ export default class AppDataAndStorageTab extends SliderSuperTabEventable { @@ -109,6 +109,7 @@ export default class AppDataAndStorageTab extends SliderSuperTabEventable {
const settings = rootScope.settings;
settings.autoDownloadNew = copy(STATE_INIT.settings.autoDownloadNew);
settings.autoDownload = copy(STATE_INIT.settings.autoDownload);
state.settings = settings;
this.managers.appStateManager.setByKey('settings', settings);
setSubtitles();

Loading…
Cancel
Save