Skip to content

Commit

Permalink
fix: Restore window on focus request
Browse files Browse the repository at this point in the history
  • Loading branch information
ggazzo committed Sep 8, 2021
1 parent abd7a08 commit ca0b8c6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ui/main/rootWindow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,10 +201,10 @@ export const setupRootWindow = (): void => {
browserWindow.setTitle(windowTitle);
}
),

listen(WEBVIEW_FOCUS_REQUESTED, async () => {
const browserWindow = await getRootWindow();
browserWindow.focus();
const rootWindow = await getRootWindow();
rootWindow.restore();
rootWindow.show();
}),
];

Expand Down

0 comments on commit ca0b8c6

Please sign in to comment.