From ed6dbe15c890cfcf76568cf1fd13f9cf02c9936d Mon Sep 17 00:00:00 2001 From: Jente Hidskes Date: Mon, 21 Aug 2017 14:40:55 +0200 Subject: [PATCH] ButtonDialog: do not list "Unknown" in the special mappings Fixes #147. --- piper/buttondialog.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/piper/buttondialog.py b/piper/buttondialog.py index 38a6ff1..55f6417 100644 --- a/piper/buttondialog.py +++ b/piper/buttondialog.py @@ -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: