mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Wait for user store to load
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
parent
19f880ed35
commit
3854a45308
@ -88,7 +88,8 @@ export class UserStore extends BaseStore<UserStoreModel> {
|
||||
}
|
||||
|
||||
@action
|
||||
resetTheme() {
|
||||
async resetTheme() {
|
||||
await userStore.whenLoaded;
|
||||
this.preferences.colorTheme = UserStore.defaultTheme;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user