From 489b19ff99e82098530022c63ac398a4e2151f76 Mon Sep 17 00:00:00 2001 From: FTCHD <144691102+FTCHD@users.noreply.github.com> Date: Sun, 22 Feb 2026 23:51:03 +0300 Subject: [PATCH] show Toolbar on left click --- lib/tray.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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') } }, })