Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib
diff options
context:
space:
mode:
authorDaniel Girtler <blackrabbit256@gmail.com>2022-05-17 20:56:41 +1000
committerGitHub <noreply@github.com>2022-05-17 12:56:41 +0200
commit32432b2fdc950e6b884e79cc4f753670c050d321 (patch)
tree5dab2cbb413f0a5620b316f3052785ae3b9da5d0 /archinstall/lib
parent72a44e34ef7f4f73126e4d33adc102e6b66fac43 (diff)
Fix padding calculation (#1205)
Co-authored-by: Daniel Girtler <girtler.daniel@gmail.com>
Diffstat (limited to 'archinstall/lib')
-rw-r--r--archinstall/lib/menu/selection_menu.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/archinstall/lib/menu/selection_menu.py b/archinstall/lib/menu/selection_menu.py
index 73ba1148..35057e9c 100644
--- a/archinstall/lib/menu/selection_menu.py
+++ b/archinstall/lib/menu/selection_menu.py
@@ -272,7 +272,8 @@ class GeneralMenu:
return max([len(str(selection.description)) for selection in entries])
def _find_selection(self, selection_name: str) -> Tuple[str, Selector]:
- padding = self._get_menu_text_padding(list(self._menu_options.values()))
+ enabled_menus = self._menus_to_enable()
+ padding = self._get_menu_text_padding(list(enabled_menus.values()))
option = [(k, v) for k, v in self._menu_options.items() if v.menu_text(padding).strip() == selection_name.strip()]
if len(option) != 1: