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

View File

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