launcher: regression preventing server halt when built-in client is closed manually beforehand
This commit is contained in:
parent
5459eb1950
commit
6813be50fb
2 changed files with 4 additions and 0 deletions
|
|
@ -5,6 +5,7 @@
|
|||
- bug fixes
|
||||
- button: allow writing strings like `"1.0"` in `label` without removing the decimals
|
||||
- editor: use css variable `--grid-width` at startup and after disabling & enabling the grid
|
||||
- launcher: regression preventing server halt when built-in client is closed manually beforehand
|
||||
|
||||
- widgets
|
||||
- menu/switch/dropdown: reset value to `undefined` when receiving a value that's not defined in `values`
|
||||
|
|
|
|||
|
|
@ -151,6 +151,9 @@ function stopServerProcess() {
|
|||
|
||||
var toClose = [...clientWindows].filter(w=>w && !w.isDestroyed()),
|
||||
closed = 0
|
||||
|
||||
if (toClose.length === 0) serverProcess.kill()
|
||||
|
||||
for (var w of toClose) {
|
||||
w.on('closed', ()=>{
|
||||
closed++
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue