Skip to content

fix(tray): fix macOS tray menu - window label, event listeners, state management#5

Open
wallydz-bot[bot] wants to merge 1 commit intomasterfrom
pr/tray-fix
Open

fix(tray): fix macOS tray menu - window label, event listeners, state management#5
wallydz-bot[bot] wants to merge 1 commit intomasterfrom
pr/tray-fix

Conversation

@wallydz-bot
Copy link
Contributor

@wallydz-bot wallydz-bot bot commented Feb 26, 2026

Round 22 — Operation Tray Fix\n\nFixes the macOS tray icon where only Quit worked.\n\n### Root Causes Fixed\n- Missing window label: Added label: main to tauri.conf.json — get_webview_window("main") was returning None for all window-dependent menu items\n- No navigate listener: Confirmed event listener exists in index.ts for settings tray action\n- No global-shortcut-trigger listener: Confirmed handlers exist for new_message/mute/dnd\n- app.manage type mismatch: Fixed Result stored instead of TrayManager (unwrap + Mutex wrap)\n- macOS foreground activation: Added set_activation_policy(ActivationPolicy::Regular) — window.show() now properly activates app on macOS\n\n### Verification\n- cargo check: 0 errors\n- npm run build: success\n- Commit: f49d9e8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants