tray: keep alive when closing if the server is running
This commit is contained in:
parent
64642274d8
commit
af6cc4b911
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue