mirror of
https://gh.catmak.name/https://github.com/mihomo-party-org/mihomo-party
synced 2025-12-26 20:50: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)
|
image.setTemplateImage(true)
|
||||||
tray?.setImage(image)
|
tray?.setImage(image)
|
||||||
})
|
})
|
||||||
tray?.addListener('right-click', async () => {
|
tray?.addListener('click', async () => {
|
||||||
triggerMainWindow()
|
triggerMainWindow()
|
||||||
})
|
})
|
||||||
tray?.addListener('click', async () => {
|
tray?.addListener('right-click', async () => {
|
||||||
await updateTrayMenu()
|
await updateTrayMenu()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user