feat(tray): reverse click behavior on macOS

This commit is contained in:
Memory 2025-10-22 12:49:03 +08:00 committed by GitHub
parent 96552778e6
commit 9f46ccf99a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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()
})
}