tray: keep alive when closing if the server is running

This commit is contained in:
jean-emmanuel 2026-08-14 09:31:11 +02:00
parent 64642274d8
commit af6cc4b911

View file

@ -199,7 +199,7 @@ function startLauncher() {
})
launcher.on('will-close', (e)=>{
if (clientWindows.some(w=>w && !w.isDestroyed())) {
if (clientWindows.some(w=>w && !w.isDestroyed()) || serverProcess) {
launcher.hide()
e.preventDefault()
}
@ -209,7 +209,7 @@ function startLauncher() {
launcher.on('close', (e)=>{
if (tray && clientWindows.some(w=>w && !w.isDestroyed()) && serverProcess) {
if (tray && (clientWindows.some(w=>w && !w.isDestroyed()) || serverProcess)) {
launcher.hide()
e.preventDefault()
return