PlugIn's toolbar keep showing after plugin unloading

Our plugin has a toolbar with built-in commands, implemented as a file with the extension *.rui, and located in the same directory as the plugin library file *.rhp. When loading the plugin, the toolbar is displayed normally. But when I make the plugin unenabled using Tools β†’ Options β†’ Plugins, then the next time I open Rhinoceros, our plugin does not load, but the toolbars continue to be displayed. Are there any ways to fix this problem?

1 Like

I don’ think there currently is a way to do this, but it certainly would make sense.
RH-87314 plugin not loaded: hide its toolbar

1 Like

Why is this a problem? In theory, if any of your toolbar buttons are clicked, your plug-in will load and what ever command is behind the button will be run.

– Dale

Hello Dali. Thank you for your reply.
We expect that when unloading the plugin, the toolbar will not be visible to the user and will not confuse him. In our plugin, running under Rhinoceros7, this is exactly what happens. When unloading, the toolbar disappears, and when loading, it appears. There too, *.rui is used, located in the plugin directory. But in this case, the *.rui file is copied by Rhinoceros7 to the folder ..\AppData\Roaming\McNeel\Rhinoceros\7.0\UI\Plug-ins\ and from there Rhinoceros7 loads it when using the plugin.
Here on the forum, I found your answer on how to manage the visibility of *.rui toolbars using RhinoSDK. It’s here.
Could you please describe in more detail what functions control the visibility of the toolbar? Can they be called using RhinoApp()?