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
|
|
@ -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'
|
||||
}))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue