PrivateActionToolButton: Hide menu if button is hidden
- PrivateActionToolButton: Hide menu if button is hidden
If the menu is open when the button gets hidden, we'd end up with a menu that doesn't have a corresponding button. So in that case, close the menu.
This most prominently happens when ActionToolBar hides the corresponding action because of space changes.