Copy link to clipboard
Copied
Hi all,
I have a plugin where I perform automatic update to allow users to always have the last version.
My problem is that when I download the new version, Lightroom load the new version of current files but if I add new files, it doesn't load.
The result is that there is errors if user don't restart lightroom as it try to use the unloaded files (the new one).
Is there a way to perform it nicely. I was thinking that until we don't hit the reload plugin button or restart Lightroom, it will not use the new version but the previous one...
Any idea?
Thank you
Cheers
Copy link to clipboard
Copied
I'm not sure there's a great solution. The documentation for many plugins inform the user to restart LR after installing a new version.,
Copy link to clipboard
Copied
Hi John,
Yes it seems to be a real problem. But as we are doing it automatically, we would like to avoid popup in a middle of a work to say to restart Lightroom..
I think that I will perform the update during the shutdown of Lightroom, there is a function in the sdk to do something just before the shut down of Lightroom.
What do you think?
Copy link to clipboard
Copied
That might work. But beware that, according to the documentation, "The LrDialogs namespace is not available in the environment of the shutdown task." So if any errors occur during the update, there won't be an easy way to report them to the user. You'd probably have to write a log file and then check for the presence of the log file when the plugin starts.
Copy link to clipboard
Copied
Thank you for the warning. 🙂
I'll check that and see. But it should alright as I can download the new version before and then just change the old one by the new one during the update. Like that I'll minimize the possibility of errors.
I'll let you know!