antler119 / system_tray

A Flutter package that makes it easy to customize and work with your Flutter desktop app's system tray.
MIT License
214 stars 51 forks source link

fix: Search for the menuitem recursively #54

Closed denizt closed 1 year ago

denizt commented 1 year ago

The current approach uses the NSMenu.item(withTag) which doesn't search for the tag recursively, failing to update any nested items in the submenus.

Use an extension to provide a recursive search to NSMenu.