fix: don't wait until regaining focus to lock app

This commit is contained in:
Antonella Sgarlatta
2021-06-07 19:07:31 -03:00
parent 3d2b4e3521
commit 98c6078a0d
3 changed files with 20 additions and 56 deletions

View File

@@ -134,7 +134,7 @@ export class AppState {
this.noAccountWarning.reset();
}
this.actionsMenu.reset();
this.unsubApp();
this.unsubApp?.();
this.unsubApp = undefined;
this.observers.length = 0;
this.appEventObserverRemovers.forEach((remover) => remover());