SDK how to prevent that a plug-in runs twice
I created a plug-in which might take some time to finish dependant upon the number of photos selected.
Question: how I can prevent that the plug-in is started anew while it is already running?
Currently I update the LRPrefs at the start and again when the plugin finishes.
However I don't like this solution, because sometimes, due to an error, the plugin quits and then the 2nd LrPrefs call is never made and the plugin prevents to start. Ofcourse that can be reset, but I would like to know if there is a better way that the plugin itself can detect that it is already running.
