Fix night mode button after restore
The night mode toggle doesn't get the right state after restore from local storage. This results in the need to toggle twice to disable night mode. This patch adds the needed class so the toggleNightMode function gets the right state on execution. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
This commit is contained in:
parent
57c47a65dd
commit
8b69013ebd
1 changed files with 1 additions and 0 deletions
|
@ -451,6 +451,7 @@ $(document).ready(function () {
|
||||||
// Re-enable nightmode
|
// Re-enable nightmode
|
||||||
if (store.get('nightMode') || Cookies.get('nightMode')) {
|
if (store.get('nightMode') || Cookies.get('nightMode')) {
|
||||||
$body.addClass('night')
|
$body.addClass('night')
|
||||||
|
ui.toolbar.night.addClass('active')
|
||||||
}
|
}
|
||||||
|
|
||||||
// showup
|
// showup
|
||||||
|
|
Loading…
Reference in a new issue