From a2e4c3df4334ae9308f0976fbcbe15d02bcc51be Mon Sep 17 00:00:00 2001 From: "Peter F. Patel-Schneider" Date: Sun, 20 Oct 2024 12:54:26 -0400 Subject: [PATCH] ui: fix initialization bug for PackedRangeControl --- lib/solaar/ui/config_panel.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/solaar/ui/config_panel.py b/lib/solaar/ui/config_panel.py index c07e257f7..e8f99d562 100644 --- a/lib/solaar/ui/config_panel.py +++ b/lib/solaar/ui/config_panel.py @@ -479,6 +479,7 @@ def set_value(self, value): class PackedRangeControl(MultipleRangeControl): def setup(self, setting): + self._items = [] validator = setting._validator for item in range(validator.count): h = Gtk.HBox(homogeneous=False, spacing=0)