mirror of
https://gh.catmak.name/https://github.com/mihomo-party-org/mihomo-party
synced 2025-12-27 05:00:30 +08:00
feat(tray): reverse click behavior on macOS
This commit is contained in:
parent
96552778e6
commit
9f46ccf99a
@ -356,10 +356,10 @@ export async function createTray(): Promise<void> {
|
||||
image.setTemplateImage(true)
|
||||
tray?.setImage(image)
|
||||
})
|
||||
tray?.addListener('right-click', async () => {
|
||||
tray?.addListener('click', async () => {
|
||||
triggerMainWindow()
|
||||
})
|
||||
tray?.addListener('click', async () => {
|
||||
tray?.addListener('right-click', async () => {
|
||||
await updateTrayMenu()
|
||||
})
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user