mirror of
https://github.com/heyman/heynote.git
synced 2025-02-25 22:52:05 +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) => {
|
||||
if (!forceQuit && isWindows && CONFIG.get("settings.showInMenu")) {
|
||||
if (!forceQuit && CONFIG.get("settings.showInMenu")) {
|
||||
event.preventDefault()
|
||||
win.hide()
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user