mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-19 09:13:57 +00:00
fix: moving downloader directly to parser
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { BrowserWindow, Menu, Tray, app } from "electron";
|
||||
import { BrowserWindow, Menu, Notification, Tray, app } from "electron";
|
||||
import { is } from "@electron-toolkit/utils";
|
||||
import { t } from "i18next";
|
||||
import path from "node:path";
|
||||
@@ -54,6 +54,10 @@ export class WindowManager {
|
||||
where: { id: 1 },
|
||||
});
|
||||
|
||||
this.mainWindow.on("ready-to-show", () => {
|
||||
if (!app.isPackaged) WindowManager.mainWindow?.webContents.openDevTools();
|
||||
});
|
||||
|
||||
this.mainWindow.on("close", () => {
|
||||
if (userPreferences?.preferQuitInsteadOfHiding) {
|
||||
app.quit();
|
||||
|
||||
Reference in New Issue
Block a user