From b3a6dc5b2e9c332b0b271542563e8ff41c0a9e69 Mon Sep 17 00:00:00 2001 From: "Peter F. Patel-Schneider" Date: Thu, 15 Apr 2021 17:44:36 -0400 Subject: [PATCH] ui: update map all settings that are not None --- lib/solaar/ui/config_panel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/solaar/ui/config_panel.py b/lib/solaar/ui/config_panel.py index 3e199286..04f37f00 100644 --- a/lib/solaar/ui/config_panel.py +++ b/lib/solaar/ui/config_panel.py @@ -481,7 +481,7 @@ def _update_setting_item(sbox, value, is_online=True, sensitive=True): control.set_value(int(value)) elif isinstance(control, Gtk.HBox): kbox, vbox = control.get_children() # depends on box layout - if value.get(kbox.get_active_id()): + if value.get(kbox.get_active_id()) is not None: vbox.set_active_id(str(value.get(kbox.get_active_id()))) elif isinstance(control, Gtk.ListBox): if control.kind == _SETTING_KIND.multiple_toggle: