setAsAppMenu

fun setAsAppMenu(): ERROR CLASS: Symbol not found for js.promise.Promise<tauri/apps/api/menu/Menu?>(source)

Sets the app-wide menu and returns the previous one.

If a window was not created with an explicit menu or had one set explicitly, this menu will be assigned to it.