launcher: close it if gui-only is set (it's useless in that case)

This commit is contained in:
jean-emmanuel 2016-11-05 15:28:06 +01:00
parent 16a9f13fec
commit 1f5884ef36

View file

@ -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')
}
})