Skip to content

Commit

Permalink
Fix possible deadlock when showing the batcher plugin.
Browse files Browse the repository at this point in the history
  • Loading branch information
tinevez committed Apr 2, 2024
1 parent fd5b2cb commit 17e681d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
*/
package fiji.plugin.trackmate.batcher;

import javax.swing.SwingUtilities;

import fiji.plugin.trackmate.batcher.ui.BatcherController;
import ij.plugin.PlugIn;
import net.imagej.ImageJ;
Expand All @@ -32,7 +34,7 @@ public class TrackMateBatcherPlugin implements PlugIn
public void run( final String arg )
{
final BatcherController controller = new BatcherController();
controller.show();
SwingUtilities.invokeLater( () -> controller.show() );
}

public static void main( final String[] args )
Expand Down

0 comments on commit 17e681d

Please sign in to comment.