mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
feat: use argv to start app minimized on system launch
This commit is contained in:
parent
0d68851cf4
commit
f585e343d9
1 changed files with 4 additions and 0 deletions
|
@ -136,6 +136,10 @@ export class WindowManager {
|
||||||
this.mainWindow.on("ready-to-show", () => {
|
this.mainWindow.on("ready-to-show", () => {
|
||||||
if (!app.isPackaged) WindowManager.mainWindow?.webContents.openDevTools();
|
if (!app.isPackaged) WindowManager.mainWindow?.webContents.openDevTools();
|
||||||
WindowManager.mainWindow?.show();
|
WindowManager.mainWindow?.show();
|
||||||
|
|
||||||
|
if (process.argv.includes("--hide") || process.argv.includes("--hidden")) {
|
||||||
|
WindowManager.mainWindow?.hide();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
this.mainWindow.on("close", async () => {
|
this.mainWindow.on("close", async () => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue