index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Daniel Girtler <blackrabbit256@gmail.com> | 2022-05-18 21:59:49 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-18 13:59:49 +0200 |
commit | 65a5a335aa21ea44fd99fb200e238df54b3c2e47 (patch) | |
tree | 5b7a1d3937fc283c91734b7ab4f06e376bb59fdb /archinstall/lib/menu/selection_menu.py | |
parent | 089c46db4a3c89dd8ba670419369c405bec3a270 (diff) |
-rw-r--r-- | archinstall/lib/menu/selection_menu.py | 8 |
diff --git a/archinstall/lib/menu/selection_menu.py b/archinstall/lib/menu/selection_menu.py index 26be4cc7..57e290f1 100644 --- a/archinstall/lib/menu/selection_menu.py +++ b/archinstall/lib/menu/selection_menu.py @@ -15,7 +15,7 @@ if TYPE_CHECKING: _: Any -def select_archinstall_language(preset_value: str) -> Optional[str]: +def select_archinstall_language(preset_value: str) -> Optional[Any]: """ copied from user_interaction/general_conf.py as a temporary measure """ @@ -487,6 +487,8 @@ class GeneralMenu: match choice.type_: case MenuSelectionType.Esc: return preset case MenuSelectionType.Selection: - return pathlib.Path(list(fido_devices.keys())[int(choice.value.split('|',1)[0])]) + selection: Any = choice.value + index = int(selection.split('|',1)[0]) + return pathlib.Path(list(fido_devices.keys())[index]) - return None
\ No newline at end of file + return None |