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:
- Enable
Show Plugin GUI Service in Explorer
under Studio Settings - 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)
- Run the code as a plugin
- Press the button to open up the PluginGui
- Exit studio (or stop it if using HotSwap)
- Run studio again
- 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.