Skip to content

Commit

Permalink
Simplify button attr
Browse files Browse the repository at this point in the history
  • Loading branch information
ppizarror committed Dec 7, 2022
1 parent 6cee69e commit 4f18a57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_controls.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def custom_joy_apply(event, _) -> bool:
"""
Custom widget apply event.
"""
condition = hasattr(event, 'button') and event.button == 8
condition = event.button == 8
joy_apply[0] = condition
return condition

Expand Down

0 comments on commit 4f18a57

Please sign in to comment.