mirror of https://github.com/heyman/heynote.git
Make close button just hide the window if "Show in menu bar" is active on Mac
This commit is contained in:
parent
bb5975455c
commit
05aba1ac65
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue