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:
Peter Hutterer
2017-07-04 15:19:22 +10:00
committed by Jente Hidskes
parent ee30a8683e
commit 1ccf312bc0

View File

@@ -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":