I have noticed that after update of my plugin, Rhino asks for restart to make changes. However after restart new plugin fails to load since old version is already loaded, most likely because its panel was open during end of previous session. When I close panel and restart Rhino new version loads sucessfully.
Is there a way to automatically identify during for eample OnClose will my plugin try to load new version after update from package manager so I can automatically close my panels?
My panels are registering during OnLoad. Maybe I should shift registration to command effect instead?
Hi Ĺukasz, I tried to reproduce this but I didnât see any errors. Here are the steps I followedâŚ
Open Rhino and install HullShapeAssistant v0.2.8090-beta.
Restart Rhino and agree to HSA EULA
Install HullShapeAssistant v0.2.8102-beta
Restart Rhino and agree to HSA EULA
I did notice that after installing a new version of the package and restarting Rhino, the âstagedâ .rui file gets loaded, not the one in the newly installed package. Are you following the guidance to check the version numbers and removed the staged .rui file during OnLoad(), as described in âCreating and Deploying Plugin Toolbarsâ?
Still no errors. If the panel is loaded and I restart Rhino without installing a different version of HSA then the panel will be there when Rhino opens. If I install a different version and restart Rhino then the panel disappears and needs to be opened again.