mirror of
https://github.com/libratbag/piper.git
synced 2026-05-19 12:26:00 -04:00
ButtonDialog: do not list "Unknown" in the special mappings
Fixes #147.
This commit is contained in:
committed by
Peter Hutterer
parent
2965979484
commit
ed6dbe15c8
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user