mirror of
https://github.com/heyman/heynote.git
synced 2025-02-26 07:02:26 +01:00
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) => {
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user