launcher: close it if gui-only is set (it's useless in that case)
This commit is contained in:
parent
16a9f13fec
commit
1f5884ef36
1 changed files with 9 additions and 1 deletions
|
|
@ -63,7 +63,15 @@ if (cli) {
|
|||
|
||||
var gui = start()
|
||||
|
||||
launcher.webContents.send('started')
|
||||
if (settings.read('guiOnly')) {
|
||||
launcher.hide()
|
||||
gui.on('close',()=>{
|
||||
launcher.close()
|
||||
})
|
||||
} else {
|
||||
launcher.webContents.send('started')
|
||||
}
|
||||
|
||||
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue