Wait system theme to catch up status

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev committed 2022-03-05 11:44:37 +03:00
1 parent 7452ebdb60
commit 336dc6896a
1 file changed
+5 -1
+5 -1
View File
@@ -93,7 +93,11 @@ export class ThemeStore extends Singleton {
makeObservable(this);
autoBind(this);
this.setNativeTheme();
this.init();
}
async init() {
await this.setNativeTheme();
this.bindNativeThemeUpdateEvent();
// auto-apply active theme