mirror of
https://github.com/libratbag/piper.git
synced 2026-04-22 23:38:00 -04:00
Fix AttributeError after RatbagdButton.button was removed
AttributeError: 'RatbagdButton' object has no attribute 'button'
Introduced in 7f54cdc3f4
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
committed by
Jente Hidskes
parent
ee30a8683e
commit
1ccf312bc0
@@ -253,7 +253,7 @@ class Piper(Gtk.Window):
|
||||
for l, button in zip(self._button_function_labels, buttons):
|
||||
action = button.action_type
|
||||
if action == "button":
|
||||
text = "Button {} click".format(button.button)
|
||||
text = "Button {} click".format(button.button_mapping)
|
||||
elif action == "key":
|
||||
text = "Key event: {}".format(button.key[0])
|
||||
elif action == "macro":
|
||||
|
||||
Reference in New Issue
Block a user