Sub-Menu - Disable/Hide if no (available) content

The RESTRICT property which allows you to hide/disable commands is great.

However, I have a use case, where I present a sub-menu to the user to pick one of the choices. Once that choice is made, it disables/hides all the choices (including the just selected one).

Unfortunately, while I can hide/disable the individual commands in the sub-menu container, the sub-menu still displays.

I therefore suggest adding a drop-down selection to the sub-menu property:
Always Display (default)
Hide (if no unrestricted commands)
Disable (if no unrestricted commands)

4 Likes

Seconded… I’ve raised the request as GitHub issue #13113.

1 Like

I implemented an improvement in this topic that didn’t quite make it into 3.7.16. A submenu with no content is disabled and so greyed out.

To go further and hide submenu would presume on design choices in existing modules, so that requires a submenu configuration option which is probably beyond what can be pushed into 3.7.x at this stage, and beyond what I had time to take on.