launcher: add hide action if using tray

This commit is contained in:
jean-emmanuel 2025-07-22 19:34:30 +02:00
parent 5cf59ea97c
commit 28c0877dc9
3 changed files with 20 additions and 0 deletions

View file

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

View file

@ -303,6 +303,13 @@ function startLauncher() {
showQRCode()
})
ipcMain.on('hide',function(e, options){
launcher.hide()
})
}