Skip to content

Commit

Permalink
fix lost focus issue introduced in v4.2.0, #248
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimiry committed Feb 2, 2020
1 parent 75e2b5a commit 2cce6f0
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/web/browser-window/app/_accounts/account.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -329,14 +329,13 @@ export class AccountComponent extends NgChangesObservableComponent implements On
startWith(IPC_MAIN_API_NOTIFICATION_ACTIONS.ActivateBrowserWindow()),
filter(IPC_MAIN_API_NOTIFICATION_ACTIONS.is.ActivateBrowserWindow),
),
this.account$,
]).pipe(
filter(([selectedLogin, , account]) => account.accountConfig.login === selectedLogin),
filter(([selectedLogin]) => this.account.accountConfig.login === selectedLogin),
debounceTime(ONE_SECOND_MS * 0.3),
).subscribe(async ([, , account]) => {
).subscribe(async () => {
this.focusPrimaryWebView();
await this.api.ipcMainClient()("selectAccount")({
databaseView: account.databaseView,
databaseView: this.account.databaseView,
// WARN electron: "webView.getWebContentsId()" is available only after "webView.dom-ready" triggered
webContentId: primaryWebView.getWebContentsId(),
});
Expand Down

0 comments on commit 2cce6f0

Please sign in to comment.