From: Michael Tremer Date: Thu, 14 Sep 2023 10:48:35 +0000 (+0000) Subject: tui: Fix selection menu for multiple entries X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4df03ba83a92ab55f9bd154f70e5dadc2de124b9;p=people%2Fms%2Fbricklayer.git tui: Fix selection menu for multiple entries The disk selection process has a list which is not hashable, and therefore this check throws an exception. Signed-off-by: Michael Tremer --- diff --git a/src/python/tui.py b/src/python/tui.py index 1b635a8..3bb91aa 100644 --- a/src/python/tui.py +++ b/src/python/tui.py @@ -309,10 +309,6 @@ class SelectWindow(ButtonsWindow): super().__init__(tui, title, text, buttons=buttons, height=height, width=width, help=help) - # Reset default it is not part of the items - if not default in items: - default = None - self.items = items self.default = default self.multi = multi