ubsicap / paratext_demo_plugins

Sample code to demonstrate how to create a Paratext plugin
2 stars 4 forks source link

Plugin Single Instance #24

Closed GeoDirk closed 1 year ago

GeoDirk commented 1 year ago

We have a desire to only have one of our plugin windows open at a time. Is there any API mechanism by which Paratext knows to only open one instance at a time?

tombogle commented 1 year ago

No. that is something your plugin would have to handle itself. See Transcelerator for a good example of how to do this. (In Transcelerator's case, it allows only one per project, but you could do something similar (only easier) if your plugin is not project-specific and you wanted to allow only one instance.

GeoDirk commented 1 year ago

@tombogle That is what I figured. No worries, we had a backup plan of handling it.

Thanks!