1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Wait system theme to catch up status

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev 2022-03-05 11:44:37 +03:00
parent 7452ebdb60
commit 336dc6896a

View File

@ -93,7 +93,11 @@ export class ThemeStore extends Singleton {
makeObservable(this); makeObservable(this);
autoBind(this); autoBind(this);
this.setNativeTheme(); this.init();
}
async init() {
await this.setNativeTheme();
this.bindNativeThemeUpdateEvent(); this.bindNativeThemeUpdateEvent();
// auto-apply active theme // auto-apply active theme