Skip to content

Commit

Permalink
bugfix: creating buttons in toolbar caused crashes
Browse files Browse the repository at this point in the history
  • Loading branch information
haesleinhuepf committed Dec 17, 2022
1 parent 411929a commit 209b224
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -478,9 +478,10 @@ private static void initLists() {
advanced_list.add(net.haesleinhuepf.clij2.plugins.CloseIndexGapsInLabelMap.class);
}

public static void installTools() {
public static void installTools() throws InterruptedException {
if (AssistantUtilities.class.getPackage().toString().contains(".clij2.")) {
if (AssistantUtilities.CLIJxAssistantInstalled()) {

return;
}
}
Expand All @@ -491,8 +492,11 @@ public static void installTools() {


Toolbar.addPlugInTool(new AssistantStartingPointTool());
Thread.sleep(500);
Toolbar.addPlugInTool(new InteractiveZoom());
Thread.sleep(500);
Toolbar.addPlugInTool(new InteractiveWindowPosition());
Thread.sleep(500);
Toolbar.addPlugInTool(new AnnotationTool());

ignoreEvent = false;
Expand Down

0 comments on commit 209b224

Please sign in to comment.