plugins.window.setMenuVisible() deprecated what the new way

In Servoy 6 the plugins.window.setMenuVisible() is alert as deprecated.
What is the proper new way to hide the menu in the smart- and web-client?

(Would be nice, if the deprecated-list in the wiki always suggest a new substitute)

Regards

The deprecation of this function happens prior to Servoy 6, as I do not see it in the docs of Servoy 5.2 either.

As of Servoy 6 we’ll provide in the update notes a list of deprecated items and their replacements if applicable. Unfortunately that list is not available for earlier versions currently.

We are looking into way to show the available info inside the Script Editor in this tooltip over the deprecated method/property.

As for a replacement for the setMenuvisible: I think there currently is no replacement: on the Menubar there’s a setVisible method and on MenuItem, but it seems to be missing on Menu.

I do not know the reason why this is, please file a case in our support system, so it can be checked.

Paul

pbakker:
The deprecation of this function happens prior to Servoy 6, as I do not see it in the docs of Servoy 5.2 either.

It was deprecated in the 5.2.0 release. (yes I keep track of all release notes ;) )

This works:

var x = plugins.window.getMenuBar()
	x.setVisible(false)