Remove main window opening on imexmedia URL call.

This commit is contained in:
Patrick Fic
2025-05-02 09:55:47 -07:00
parent 29e0f0924b
commit 1935991631

View File

@@ -467,7 +467,6 @@ app.whenReady().then(async () => {
return; // Skip openMainWindow to avoid focusing the window return; // Skip openMainWindow to avoid focusing the window
} else { } else {
openInExplorer(url); openInExplorer(url);
openMainWindow(); // Focus window for non-keep-alive URLs
} }
} else { } else {
openMainWindow(); // Focus window if no URL openMainWindow(); // Focus window if no URL
@@ -580,7 +579,6 @@ app.on("open-url", (event: Electron.Event, url: string) => {
return; // Skip openMainWindow to avoid focusing the window return; // Skip openMainWindow to avoid focusing the window
} else { } else {
openInExplorer(url); openInExplorer(url);
openMainWindow(); // Focus window for non-keep-alive URLs
} }
}); });