Make close button just hide the window if "Show in menu bar" is active on Mac

This commit is contained in:
Jonatan Heyman 2024-01-06 03:08:08 +01:00
parent bb5975455c
commit 05aba1ac65
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ async function createWindow() {
}
win.on("close", (event) => {
if (!forceQuit && isWindows && CONFIG.get("settings.showInMenu")) {
if (!forceQuit && CONFIG.get("settings.showInMenu")) {
event.preventDefault()
win.hide()
return