From 487e1a3ded325f38d7f5564c4c0268c17878b478 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius?= Date: Sat, 14 Nov 2020 16:42:02 -0300 Subject: [PATCH] ui: show Feature completion matches for all features --- lib/solaar/ui/diversion_rules.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/solaar/ui/diversion_rules.py b/lib/solaar/ui/diversion_rules.py index e4716c62..cc8de26d 100644 --- a/lib/solaar/ui/diversion_rules.py +++ b/lib/solaar/ui/diversion_rules.py @@ -28,6 +28,7 @@ import Xlib.XK from gi.repository import Gdk, GObject, Gtk from logitech_receiver import diversion as _DIV +from logitech_receiver.hidpp20 import FEATURE as _ALL_FEATURES from logitech_receiver.special_keys import CONTROL as _CONTROL from pynput import mouse as _mouse from solaar.i18n import _ @@ -889,7 +890,8 @@ class FeatureUI(ConditionUI): self.field.set_vexpand(True) self.field.set_size_request(600, 0) self.field.connect('changed', self._on_update) - CompletionEntry.add_completion_to_entry(self.field.get_child(), self.FEATURES_WITH_DIVERSION) + all_features = [str(f) for f in _ALL_FEATURES] + CompletionEntry.add_completion_to_entry(self.field.get_child(), all_features) self.widgets[self.field] = (0, 0, 1, 1) def show(self, component):