Skip to content

fix(desktop): prevent double-toggle on tray click (windows)#83

Merged
takitsu21 merged 2 commits intotakitsu21:mainfrom
theguy000:fix/tray-single-click-windows
Mar 16, 2026
Merged

fix(desktop): prevent double-toggle on tray click (windows)#83
takitsu21 merged 2 commits intotakitsu21:mainfrom
theguy000:fix/tray-single-click-windows

Conversation

@theguy000
Copy link
Copy Markdown
Contributor

  • Tauri emits Click events for both mouse-down and mouse-up on Windows
  • Handler was toggling visibility on every event, causing cancellation
  • Filter to react only on button release (MouseButtonState::Up)

@theguy000 theguy000 changed the title fix(desktop): prevent double-toggle on tray click fix(desktop): prevent double-toggle on tray click (windows) Mar 15, 2026
- Tauri emits Click events for both mouse-down and mouse-up on Windows
- Handler was toggling visibility on every event, causing cancellation
- Filter to react only on button release (MouseButtonState::Up)
@theguy000 theguy000 force-pushed the fix/tray-single-click-windows branch from bb9969f to 7a0c633 Compare March 15, 2026 15:05
@takitsu21 takitsu21 enabled auto-merge (squash) March 16, 2026 18:44
@takitsu21 takitsu21 merged commit cbe2a2a into takitsu21:main Mar 16, 2026
2 checks passed
@theguy000 theguy000 deleted the fix/tray-single-click-windows branch March 16, 2026 19:20
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.

2 participants