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

@ -157,6 +157,16 @@ menu.append(new MenuItem({
openDocs()
}
}))
if (settings.remote.read('useTray')) {
menu.append(new MenuItem({
label: 'Hide',
click: ()=>{
ipcRenderer.send('hide')
}
}))
}
menu.append(new MenuItem({
role: 'Quit'
}))