We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0b1f0f commit f66543eCopy full SHA for f66543e
1 file changed
src-electron/main-window-ipc.js
@@ -83,13 +83,16 @@ function registerWindowIpcHandlers() {
83
app.exit(exitCode || 0);
84
});
85
86
- // Focus current window
+ // Focus current window and bring to front
87
ipcMain.handle('focus-window', (event) => {
88
const win = BrowserWindow.fromWebContents(event.sender);
89
if (win) {
90
- win.setAlwaysOnTop(true);
+ if (win.isMinimized()) {
91
+ win.restore();
92
+ }
93
+ win.moveTop();
94
+ win.show();
95
win.focus();
- win.setAlwaysOnTop(false);
96
}
97
98
0 commit comments