Fix tray logic

This commit is contained in:
V 2023-07-27 00:46:25 +02:00
parent be9642eff1
commit 2b4f7a07d2
No known key found for this signature in database
GPG key ID: A1DC0CFB5615D905

View file

@ -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();