Skip to content

Commit ca0b8c6

Browse files
committed
fix: Restore window on focus request
1 parent abd7a08 commit ca0b8c6

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/ui/main/rootWindow.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,10 +201,10 @@ export const setupRootWindow = (): void => {
201201
browserWindow.setTitle(windowTitle);
202202
}
203203
),
204-
205204
listen(WEBVIEW_FOCUS_REQUESTED, async () => {
206-
const browserWindow = await getRootWindow();
207-
browserWindow.focus();
205+
const rootWindow = await getRootWindow();
206+
rootWindow.restore();
207+
rootWindow.show();
208208
}),
209209
];
210210

0 commit comments

Comments
 (0)