menuv
menuv copied to clipboard
Fix(Close All): Propagate 'close' event for parent menus
When you're using MenuV with nested menus the close_all action doesn't trigger back to the parent menus. This is problematic when you're using the close
event on the top menu handling a camera and when calling the close_all callback within multiple nested menus, the top menu doesn't clear the camera.
We did the modification on a fork of this repository so we're sharing the fix for the community. I've put the liberty to clean the parent menus after looping it, feel free to remove this line if necessary.