Plugin Menu doesn't show up if created after the widget is created

If you try to create a plugin menu after you have called plugin:CreateDockWidgetPluginGui the plugin menu will never show.

Below is a test plugin I made to demonstrate.

Repro

  1. Install the test plugin included below
  2. Activate the plugin by clicking on the Test Editor Plugin button on the plugins toolbar
  3. Press the Menu 2 button.
  4. Observe that the menu doesn’t show
  5. Press Menu 1 button
  6. Observe that this menu does show.

Menu 1 will show because it is initialized before the widget is. Menu 2 won’t because it is done after, but if you move the code before the widget initialization it will work fine.

TestPlugin.rbxmx (11.8 KB)

Not sure if this is intended behaviour as I couldn’t find anything on the wiki about this.

Note, that due to this bug: PluginMenus don't display after updating/refreshing the plugin any changes you make to the test plugin to see the effect on the menu will require restarting studio.

This started happening for me today ( I had only just added the widget code to my plugin ) and happens in Studio 100% of the time.

Thanks!

Thanks for the report! We’ve filed this internally and we’ll follow up here when we have an update for you.

1 Like

This issue should now be resolved! If this issue is still occurring, please create a new topic for us to look into.

2 Likes