Commit b47e40e4 authored by yann300's avatar yann300

fix displaying current active theme

parent ec0b192e
...@@ -35,11 +35,6 @@ module.exports = class SettingsTab extends BaseApi { ...@@ -35,11 +35,6 @@ module.exports = class SettingsTab extends BaseApi {
} }
} /* eslint-enable */ } /* eslint-enable */
this.event = new EventManager() this.event = new EventManager()
this.initTheme()
}
initTheme () {
this.currentTheme = this._deps.themeModule.currentTheme()
} }
createThemeCheckies () { createThemeCheckies () {
...@@ -54,7 +49,7 @@ module.exports = class SettingsTab extends BaseApi { ...@@ -54,7 +49,7 @@ module.exports = class SettingsTab extends BaseApi {
<input type="radio" onchange=${event => { onswitchTheme(event, aTheme.name) }} class="align-middle form-check-input" name="theme" id="${aTheme.name}" > <input type="radio" onchange=${event => { onswitchTheme(event, aTheme.name) }} class="align-middle form-check-input" name="theme" id="${aTheme.name}" >
<label class="form-check-label" for="${aTheme.name}">${aTheme.name} (${aTheme.quality})</label> <label class="form-check-label" for="${aTheme.name}">${aTheme.name} (${aTheme.quality})</label>
</div>` </div>`
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 return el
})} })}
</div>` </div>`
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment