I am currently working on a plugin. For what I am working on I am trying to detect when the user closes the widget however I can’t seem to find a function that represents this, or am I missing something? I am currently focusing on this api reference on WidgetPluginGUI which I think has a typo in the title.
The reason I am trying to do this is so I can detect when the user closes the Widget and then my script will destroy it so that it can be created again when needed.