Skip to content

Commit

Permalink
Check for equality or identity
Browse files Browse the repository at this point in the history
  • Loading branch information
astrofrog committed Oct 11, 2022
1 parent f6e93ab commit 46139f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion echo/qt/connect.py
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ def update_widget(self, value, force=False):
choice_labels = getattr(type(self._instance), self._prop).get_choice_labels(self._instance)

for idx in range(len(choices)):
if choices[idx] is value:
if choices[idx] is value or (choices[idx] == value) is True:
break
else:
idx = -1
Expand Down

0 comments on commit 46139f2

Please sign in to comment.