mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
This commit is contained in:
parent
633bb7820b
commit
9de7d4a61e
10 changed files with 62 additions and 35 deletions
|
@ -73,7 +73,7 @@ app.on("browser-window-created", (_, window) => {
|
|||
optimizer.watchWindowShortcuts(window);
|
||||
});
|
||||
|
||||
app.on("second-instance", (_event, commandLine) => {
|
||||
app.on("second-instance", (_event) => {
|
||||
// Someone tried to run a second instance, we should focus our window.
|
||||
if (WindowManager.mainWindow) {
|
||||
if (WindowManager.mainWindow.isMinimized())
|
||||
|
@ -84,16 +84,16 @@ app.on("second-instance", (_event, commandLine) => {
|
|||
WindowManager.createMainWindow();
|
||||
}
|
||||
|
||||
const [, path] = commandLine.pop()?.split("://") ?? [];
|
||||
if (path) {
|
||||
WindowManager.redirect(path);
|
||||
}
|
||||
// const [, path] = commandLine.pop()?.split("://") ?? [];
|
||||
// if (path) {
|
||||
// WindowManager.redirect(path);
|
||||
// }
|
||||
});
|
||||
|
||||
app.on("open-url", (_event, url) => {
|
||||
const [, path] = url.split("://");
|
||||
WindowManager.redirect(path);
|
||||
});
|
||||
// app.on("open-url", (_event, url) => {
|
||||
// const [, path] = url.split("://");
|
||||
// WindowManager.redirect(path);
|
||||
// });
|
||||
|
||||
// Quit when all windows are closed, except on macOS. There, it's common
|
||||
// for applications and their menu bar to stay active until the user quits
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue