Skip to content

V1.62.0 Broke This Code #15685

Answered by msujew
Geeksfino asked this question in Q&A
May 29, 2025 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Hey @Geeksfino,

we've refactored the whole menu API in #14676, so breakage is expected. However, the fix for your issues is luckily very simple. The paths for the menu nodes you're trying to remove has changed.

MenuModelRegistry.unregisterMenuNode() is now invalid, the unregisterMenuNode() method is gone

You should use the following to remove the respective entries:

menus.unregisterMenuAction('6_debug', MAIN_MENU_BAR);
menus.unregisterMenuAction('7_terminal', MAIN_MENU_BAR);

MenuModelRegistry.getMenuNode() used to return a menu object with "children" property. Now in V1.62.0 it doesn't

You should now use getMenu to get the CompoundMenuNode, which contains the children property:

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Geeksfino
Comment options

Answer selected by msujew
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants