ButtonDialog: do not list "Unknown" in the special mappings

Fixes #147.
This commit is contained in:
Jente Hidskes
2017-08-21 14:40:55 +02:00
committed by Peter Hutterer
parent 2965979484
commit ed6dbe15c8

View File

@@ -146,6 +146,8 @@ class ButtonDialog(Gtk.Dialog):
self.listbox.select_row(row)
i += 1
for key, name in RatbagdButton.SPECIAL_DESCRIPTION.items():
if name == _("Unknown"):
continue
row = ButtonRow(name, _("Special mapping"), RatbagdButton.ACTION_TYPE_SPECIAL, key)
self.listbox.insert(row, i)
if self._action_type == RatbagdButton.ACTION_TYPE_SPECIAL and key == self._mapping: