mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
refactor: remove launch app minimized logic
This commit is contained in:
parent
619090961b
commit
554889fe7d
1 changed files with 1 additions and 12 deletions
|
@ -135,18 +135,7 @@ 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();
|
||||||
if (
|
|
||||||
process.argv.includes("--hide") ||
|
|
||||||
process.argv.includes("--hidden")
|
|
||||||
) {
|
|
||||||
WindowManager.mainWindow?.hide();
|
|
||||||
process.argv = process.argv.filter(
|
|
||||||
(arg) => arg !== "--hide" && arg !== "--hidden"
|
|
||||||
);
|
|
||||||
} else {
|
|
||||||
WindowManager.mainWindow?.show();
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
this.mainWindow.on("close", async () => {
|
this.mainWindow.on("close", async () => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue