Skip to content

Commit

Permalink
Merge pull request #2813 from pieleric/fix-hide-fiber-align-control-i…
Browse files Browse the repository at this point in the history
…n-sparcv1-alignment-tab-if-axes-are-not-present

[fix] hide fiber align control in SPARCv1 alignment tab if axes are not present
  • Loading branch information
pieleric authored Jul 3, 2024
2 parents 56a8194 + f9c6c06 commit 71c1615
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/odemis/gui/cont/tabs/sparc_align_tab.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,11 @@ def __init__(self, name, button, panel, main_frame, main_data):

tab_data.align_mode.subscribe(self._onAlignMode)

# Hide the fiber aligner panel if no hardware present (although the "fiber-align" mode may
# still be there, as it might be a manual fiber aligner)
showfib = ("fibaligner", "x") in tab_data.axes
panel.pnl_fibaligner.Show(showfib)

self._actuator_controller = ActuatorController(tab_data, panel, "mirror_align_")

# Bind keys
Expand Down

0 comments on commit 71c1615

Please sign in to comment.