From 7a9247278db6d766030cd2e150cbd38c0be1013e Mon Sep 17 00:00:00 2001 From: Chubby Granny Chaser Date: Sun, 18 Aug 2024 02:31:20 +0100 Subject: [PATCH] fix: removing menu --- src/main/entity/repack.entity.ts | 2 +- src/main/services/window-manager.ts | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/entity/repack.entity.ts b/src/main/entity/repack.entity.ts index 380d7b8c..3b546692 100644 --- a/src/main/entity/repack.entity.ts +++ b/src/main/entity/repack.entity.ts @@ -19,7 +19,7 @@ export class Repack { /** * @deprecated Use uris instead */ - @Column("text", { unique: true, nullable: true }) + @Column("text", { unique: true }) magnet: string; /** diff --git a/src/main/services/window-manager.ts b/src/main/services/window-manager.ts index fcef12d6..201b13ad 100644 --- a/src/main/services/window-manager.ts +++ b/src/main/services/window-manager.ts @@ -64,8 +64,6 @@ export class WindowManager { this.loadURL(); this.mainWindow.removeMenu(); - WindowManager.mainWindow?.webContents.openDevTools(); - this.mainWindow.on("ready-to-show", () => { if (!app.isPackaged) WindowManager.mainWindow?.webContents.openDevTools(); WindowManager.mainWindow?.show();