fix: the context menu is not displayed on linux

This commit is contained in:
injurka 2024-11-11 13:11:30 +04:00 committed by 亢奋猫
parent b39d33c6ac
commit 728b2532ea

View File

@ -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', () => {