Address data race in menuActive flag access:
- Add menuMutex sync.RWMutex to WindowAttachConfig struct
- Protect menuActive read in WindowLostFocus handler with RLock
- Protect menuActive writes in AboutToShow and Event handlers with Lock
This fixes concurrent access between DBus callbacks (writes) and the
WindowLostFocus handler (reads) that could cause data races.
Addresses CodeRabbit review comments from PR #4775.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
Thanks for wanting to help out with testing/developing Wails v3! This guide will help you get started.
Getting Started
All the instructions for getting started are in the v3 documentation directory: mkdocs-website.
Please read the README.md file in that directory for more information.