Skip to content

Commit

Permalink
Fix manually setting relative constraint
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Avery <[email protected]>
  • Loading branch information
psavery committed Dec 13, 2024
1 parent 5631656 commit c65d9cf
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions hexrdgui/calibration/calibration_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,11 +372,7 @@ def relative_constraints(self) -> RelativeConstraintsType:
def relative_constraints(self, v: RelativeConstraintsType):
v = v if v is not None else RelativeConstraintsType.none
w = self.ui.relative_constraints
options = [w.itemText(i) for i in range(w.count())]
if v.value not in options:
raise Exception(f'Invalid relative constraints: {v.value}')

w.setCurrentText(v.value)
w.setCurrentText(RELATIVE_CONSTRAINT_LABELS[v])

self.update_relative_constraint_visibilities()

Expand Down

0 comments on commit c65d9cf

Please sign in to comment.