mirror of
https://github.com/davidkaya/aryx.git
synced 2026-08-04 19:08:40 +02:00
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:
+3
-1
@@ -116,7 +116,9 @@ async function bootstrap(): Promise<void> {
|
||||
}
|
||||
|
||||
app.on('second-instance', () => {
|
||||
showAndFocusWindow();
|
||||
if (mainWindow && !mainWindow.isDestroyed()) {
|
||||
showAndFocusWindow(mainWindow);
|
||||
}
|
||||
});
|
||||
|
||||
app.whenReady().then(bootstrap);
|
||||
|
||||
Reference in New Issue
Block a user