show Toolbar on left click

This commit is contained in:
FTCHD
2026-02-24 13:44:09 +03:00
parent 55e229f432
commit 489b19ff99
+4 -3
View File
@@ -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')
}
},
})