Restored PuginGui are not Enabled

Bug: When I start Studio, PuginGuis that were opened before should be reopened. This works, but the Enabled property is still set to false, thus plugin scripts cannot identify that the PuginGui was restored. The HostWidgetWasRestored property also remains false.

This has been happening for a few weeks.

For instance, here’s the restored state of my AeroGameFramework PuginGui. As you can see, the GUI is opened in the bottom-left, but the Enabled property is still false. If I try to drag the PluginGui around, it becomes Enabled.

This occurs for any other plugin using PluginGuis too.


Repro:

  1. Enable Show Plugin GUI Service in Explorer under Studio Settings
  2. Create a plugin with code that creates a PluginGui that can be toggled on/off:
	local gui = plugin:CreateDockWidgetPluginGui("BugRepro", DockWidgetPluginGuiInfo.new())
	gui.Name = "BugRepro"
	gui.Title = "Bug Repro"
	
	local btn = plugin:CreateToolbar("Bug Repro"):CreateButton("Bug Repro", "Bug Repro", "")
	
	btn.Click:Connect(function()
		gui.Enabled = not gui.Enabled
	end)
  1. Run the code as a plugin
  2. Press the button to open up the PluginGui
  3. Exit studio (or stop it if using HotSwap)
  4. Run studio again
  5. Observe that the PluginGui is open, but not enabled (look within the PluginGuiService for ‘BugRepro’)

Here’s a video version too. I have a bad cold so I apologize if it’s a bit hard to understand:


This has been occurring for a couple of weeks. Before though, it simply would fail to restore them. So it seems like it’s been half fixed? Not sure.

8 Likes

This is still a problem

I think I’m still experiencing this issue. Anyone else?

So sorry to necrobump this, but i’m having the same issue here

1 Like