Fix a regression from 6.35.0 where items in the context menu from the minieditor and from the command input when the commander is undocked did not get disabled when selecting them does nothing.
In wxWidgets, the OnUpdate* don't fire when a context menu is displayed from a wxDialog, so the code now enables/disables each item before showing the context menu.