avoid triggering forceupdate on homepage on init of theme state
This commit is contained in:
parent
b685b7d7be
commit
63e4faf73d
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user