Skip to content

Commit

Permalink
refactor: Use Gdk constant for right click button comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
MattHag committed Mar 10, 2024
1 parent 7664fd9 commit d3ec989
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/solaar/ui/diversion_rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ def __get_insert_menus(self, m, it, c, can_insert, can_insert_only_rule, can_ins
return items

def _event_button_released(self, v, e):
if e.button == 3: # right click
if e.button == Gdk.BUTTON_SECONDARY: # right click
m, it = v.get_selection().get_selected()
wrapped = m[it][0]
c = wrapped.component
Expand Down

0 comments on commit d3ec989

Please sign in to comment.