From 2b4f7a07d220d6d1d8451dfa88f84dbfcb3961d1 Mon Sep 17 00:00:00 2001 From: V Date: Thu, 27 Jul 2023 00:46:25 +0200 Subject: [PATCH] Fix tray logic --- src/main/mainWindow.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/mainWindow.ts b/src/main/mainWindow.ts index ab62066..7112615 100644 --- a/src/main/mainWindow.ts +++ b/src/main/mainWindow.ts @@ -345,7 +345,7 @@ function createMainWindow() { win.setMenuBarVisibility(false); win.on("close", e => { - const useTray = Settings.store.minimizeToTray && Settings.store.tray; + const useTray = Settings.store.minimizeToTray !== false && Settings.store.tray !== false; if (isQuitting || (process.platform !== "darwin" && !useTray)) return; e.preventDefault();