Skip to content

Commit

Permalink
AutoLase: wait to start up until user selects the plugin.
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Weisiger committed Sep 10, 2015
1 parent 90ec8ba commit 36c0b7a
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,19 @@ public class AutoLasePlugin implements org.micromanager.MenuPlugin, SciJavaPlugi
public static final String tooltipDescription =
"Closed-loop imaged-based photoactivation control for PALM";
private Studio studio_;
private boolean haveSetup_ = false;

@Override
public void setContext(Studio app) {
studio_ = app;
AutoLase.INSTANCE.setup(app);
}

@Override
public void onPluginSelected() {
if (!haveSetup_) {
AutoLase.INSTANCE.setup(studio_);
haveSetup_ = true;
}
AutoLase.INSTANCE.show();
}

Expand Down

0 comments on commit 36c0b7a

Please sign in to comment.