diff --git a/lib/tray.ts b/lib/tray.ts index 9cbfd91..b4fe548 100644 --- a/lib/tray.ts +++ b/lib/tray.ts @@ -212,11 +212,12 @@ export async function initTray() { menu: await buildMenu(), icon: await resolveTrayIconForTheme(), tooltip: 'Rclone', - menuOnLeftClick: true, + showMenuOnLeftClick: platform() === 'macos', iconAsTemplate: true, action: async (event: TrayIconEvent) => { - if (event.type === 'Click') { - console.log('[onTrayAction] tray clicked:', event) + if (platform() === 'macos') return + if (event.type === 'Click' && event.button === 'Left') { + await invoke('show_toolbar') } }, })