Add option to not minimize to tray

This commit is contained in:
Vendicated
2023-04-09 05:57:45 +02:00
parent 94b80ebe75
commit c29dd6d2d7
3 changed files with 3 additions and 1 deletions

View File

@@ -222,7 +222,7 @@ export function createMainWindow() {
});
win.on("close", e => {
if (isQuitting) return;
if (isQuitting || Settings.minimizeToTray === false) return;
e.preventDefault();
win.hide();