mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-09 23:10:20 +08:00
fix: the context menu is not displayed on linux
This commit is contained in:
parent
b39d33c6ac
commit
728b2532ea
@ -50,12 +50,14 @@ export class TrayService {
|
|||||||
label: trayLocale.show_window,
|
label: trayLocale.show_window,
|
||||||
click: () => windowService.showMainWindow()
|
click: () => windowService.showMainWindow()
|
||||||
},
|
},
|
||||||
|
{ type: 'separator' },
|
||||||
{
|
{
|
||||||
label: trayLocale.quit,
|
label: trayLocale.quit,
|
||||||
click: () => this.quit()
|
click: () => this.quit()
|
||||||
}
|
}
|
||||||
])
|
])
|
||||||
|
|
||||||
|
this.tray.setContextMenu(contextMenu)
|
||||||
this.tray.setToolTip('Cherry Studio')
|
this.tray.setToolTip('Cherry Studio')
|
||||||
|
|
||||||
this.tray.on('right-click', () => {
|
this.tray.on('right-click', () => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user