How would we define a menu item that intentionally reloads the menu so we can test its functions, by reloading it from the interface, instead of closing the session each time? The userMenuTrigger will not allow itself to be reloaded, preventing an update to the menu in-session.
I am using something like the following in my attempt -
[Menu_Item_Update = hiCreateMenuItem(?name 'Update ?itemtext "Update" ?callback "load("Menu.il") ); ]
deRegUserTriggers("maskLayout" nil 'Menu)
So if my Menu is already defined, it is not being re-registered. It may be getting updated, but is not reflected in the current session. If I remove the "unless" construct, I get
*Error* User menu trigger already registered for viewtype maskLayout.
*Error* load: error while loading file - "Menu.il"