MenuItemName.Enabled = False Ignored?

I have a menu item - “ViewJobDetails” - under the app’s View menu that I need to disable/enable dependent on the user’s current view in the app. However, when the user changes the and I set “ViewJobDetails.Enabled = False”, the menuitem is still enabled.

Is there a magic incantation that I’ve missed in dealing with menus?

Answer - set a flag and then change the state in the EnableMenuItems event.