diff --git a/src/app/tabs/settings-tab.js b/src/app/tabs/settings-tab.js index da259ed06f..eef81865f6 100644 --- a/src/app/tabs/settings-tab.js +++ b/src/app/tabs/settings-tab.js @@ -35,11 +35,6 @@ module.exports = class SettingsTab extends BaseApi { } } /* eslint-enable */ this.event = new EventManager() - this.initTheme() - } - - initTheme () { - this.currentTheme = this._deps.themeModule.currentTheme() } createThemeCheckies () { @@ -54,7 +49,7 @@ module.exports = class SettingsTab extends BaseApi { { onswitchTheme(event, aTheme.name) }} class="align-middle form-check-input" name="theme" id="${aTheme.name}" > ` - if (this.currentTheme === aTheme.name) el.querySelector('input').setAttribute('checked', 'checked') + if (this._deps.themeModule.active === aTheme.name) el.querySelector('input').setAttribute('checked', 'checked') return el })} `