fix minimize to tray not applying on first launch

This commit is contained in:
MrGarlic 2024-05-16 11:13:25 -04:00
parent a8d72fa665
commit 2c394eec4e

View file

@ -414,7 +414,7 @@ function createMainWindow() {
win.setMenuBarVisibility(false);
win.on("close", e => {
const useTray = !isDeckGameMode && Settings.store.minimizeToTray !== false && Settings.store.tray !== false;
const useTray = !isDeckGameMode && Settings.store.minimizeToTray && Settings.store.tray !== false;
if (isQuitting || (process.platform !== "darwin" && !useTray)) return;
e.preventDefault();