launcher: add hide action if using tray
This commit is contained in:
parent
5cf59ea97c
commit
28c0877dc9
3 changed files with 20 additions and 0 deletions
|
|
@ -65,8 +65,11 @@ module.exports = function(options={}) {
|
|||
if (settings.read('useTray') || process.platform === 'darwin') {
|
||||
window.hide()
|
||||
} else {
|
||||
window.show()
|
||||
window.minimize()
|
||||
}
|
||||
} else {
|
||||
window.show()
|
||||
}
|
||||
})
|
||||
|
||||
|
|
|
|||
|
|
@ -303,6 +303,13 @@ function startLauncher() {
|
|||
showQRCode()
|
||||
|
||||
})
|
||||
|
||||
|
||||
ipcMain.on('hide',function(e, options){
|
||||
|
||||
launcher.hide()
|
||||
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue