fix: pass mainWindow argument to showAndFocusWindow in second-instance handler

The showAndFocusWindow function signature was updated to require a
mainWindow parameter, but the call site in the second-instance handler
was not updated, causing a TypeScript compilation error that broke CI.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
David Kaya
2026-04-16 14:43:41 +02:00
co-authored by Copilot
parent 1376de4148
commit 5f263002f0
+3 -1
View File
@@ -116,7 +116,9 @@ async function bootstrap(): Promise<void> {
}
app.on('second-instance', () => {
showAndFocusWindow();
if (mainWindow && !mainWindow.isDestroyed()) {
showAndFocusWindow(mainWindow);
}
});
app.whenReady().then(bootstrap);