Previously, updating a systray menu while it was open would break click
handlers because Menu.Update() destroyed and recreated all menu items
with new IDs. The visible menu still referenced old IDs, causing
"MenuItem #X not found" errors when clicked.
This fix modifies macosMenu.update() to update existing menu items
in-place using the existing C setter functions (setMenuItemLabel,
setMenuItemDisabled, etc.) instead of clearing and rebuilding the
entire menu. This preserves the menuItemID baked into each NSMenuItem.
Fixes#4719
Co-Authored-By: Claude Opus 4.5 <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.