From 7d0fbbd9601f29221f4ca1947a57b0cde622ce85 Mon Sep 17 00:00:00 2001 From: Zamitto <167933696+zamitto@users.noreply.github.com> Date: Tue, 3 Jun 2025 13:40:23 -0300 Subject: [PATCH] feat: small refactor --- src/main/services/window-manager.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/main/services/window-manager.ts b/src/main/services/window-manager.ts index 3d84d6f3..35a52397 100644 --- a/src/main/services/window-manager.ts +++ b/src/main/services/window-manager.ts @@ -370,14 +370,11 @@ export class WindowManager { }, }); this.notificationWindow.setIgnoreMouseEvents(true); - // this.notificationWindow.setVisibleOnAllWorkspaces(true, { - // visibleOnFullScreen: true, - // }); this.notificationWindow.setAlwaysOnTop(true, "screen-saver", 1); this.loadNotificationWindowURL(); - if (isStaging) { + if (!app.isPackaged || isStaging) { this.notificationWindow.webContents.openDevTools(); } } @@ -464,7 +461,7 @@ export class WindowManager { editorWindow.once("ready-to-show", () => { editorWindow.show(); this.mainWindow?.webContents.openDevTools(); - if (isStaging) { + if (!app.isPackaged || isStaging) { editorWindow.webContents.openDevTools(); } });