avoid triggering forceupdate on homepage on init of theme state

This commit is contained in:
lukas 2021-09-26 23:58:56 +02:00
parent b685b7d7be
commit 63e4faf73d

View File

@ -25,6 +25,7 @@ class StaticInfos {
* @param enable enable the dark theme? * @param enable enable the dark theme?
*/ */
enableDarkTheme(enable = true): void { enableDarkTheme(enable = true): void {
if (this.darktheme !== enable) {
this.darktheme = enable; this.darktheme = enable;
// trigger onThemeChange handlers // trigger onThemeChange handlers
@ -32,6 +33,7 @@ class StaticInfos {
func(); func();
}); });
} }
}
/** /**
* get the currently selected theme stylesheet * get the currently selected theme stylesheet