Hello Forum,
I’m still struggling against empty toolbars.
In my last test I did, at plugIn loadTime:
- Delete the appData UI folder
- Delete the appData settings folder
- Delete all my .rui files and their backups
Here is my code:
public override PlugInLoadTime LoadTime
{
//get { return PlugInLoadTime.AtStartup; }
get
{
try
{
Directory.Delete(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\McNeel\\Rhinoceros\\6.0\\UI", true);
Directory.Delete(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\McNeel\\Rhinoceros\\6.0\\settings", true);
System.IO.File.Delete("gpTmp.rui");
System.IO.File.Delete("gpTmp.rui.rui_bak");
}
catch
{
}
return PlugInLoadTime.AtStartup;
}
}
Then at first Rhino idle event, and just once, I close all ToolbarFiles like this:
foreach (Rhino.UI.ToolbarFile tf in RhinoApp.ToolbarFiles) RhinoApp.ToolbarFiles.FindByName(tf.Name, true).Close(false);
and the result is:
If I drag the empty toolbar in the viewport:
I have not even the controls to close it!
Any idea?
Thanks. L