mirror of
https://github.com/netbirdio/netbird.git
synced 2026-05-18 22:59:57 +00:00
Wails v3 alpha's setMenuItemBitmap on darwin calls NSMenuItem.setImage from whichever thread invokes SetBitmap — unlike the sibling setters for label/disabled/hidden/checked, which dispatch_sync onto the main queue. The off-thread AppKit call doesn't redraw, so the coloured status dot stayed stale until the user closed and reopened the menu. Force a tray.SetMenu rebuild after updating the bitmap; the rebuild runs processMenu inside InvokeSync, which applies the bitmap to a fresh NSMenuItem on the main thread and macOS picks it up immediately.
32 KiB
32 KiB