]> git.ipfire.org Git - people/ms/bricklayer.git/commitdiff
tui: Fix selection menu for multiple entries
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 14 Sep 2023 10:48:35 +0000 (10:48 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 14 Sep 2023 10:48:35 +0000 (10:48 +0000)
The disk selection process has a list which is not hashable, and
therefore this check throws an exception.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/python/tui.py

index 1b635a8d7d319698339fc336cc798eb01c825876..3bb91aaa8bfe330e345e8d285178f01946e1a529 100644 (file)
@@ -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