But if you update the menu with wth Menu.setApplicationMenu(menu) then the commandId's have changed but this package does not know about the new commandId's. The result is that clicking any menu item does not work since they refer to non-existing commandId's.
If I run titlebar.updateMenu(menu) after setApplicationMenu, the commandIds are also updated and clicks work as expected.
This method is marked private:
But if you update the menu with wth
Menu.setApplicationMenu(menu)
then the commandId's have changed but this package does not know about the new commandId's. The result is that clicking any menu item does not work since they refer to non-existing commandId's.If I run
titlebar.updateMenu(menu)
after setApplicationMenu, the commandIds are also updated and clicks work as expected.