Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/interactions
diff options
context:
space:
mode:
authorcodefiles <11915375+codefiles@users.noreply.github.com>2023-10-09 06:40:59 -0400
committerGitHub <noreply@github.com>2023-10-09 21:40:59 +1100
commitdc69acd4b43931f9fd3a267d78834d1a38fbb10f (patch)
tree2b773ea48d70c45a4c3381963d74e9ca136f7968 /archinstall/lib/interactions
parentedbc13590366e93bb8a85eacf104d5613bc5793a (diff)
Fix keyboard layout and timezone menus (#2153)
Diffstat (limited to 'archinstall/lib/interactions')
-rw-r--r--archinstall/lib/interactions/general_conf.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/archinstall/lib/interactions/general_conf.py b/archinstall/lib/interactions/general_conf.py
index 56598e25..a23426d0 100644
--- a/archinstall/lib/interactions/general_conf.py
+++ b/archinstall/lib/interactions/general_conf.py
@@ -44,7 +44,7 @@ def ask_for_a_timezone(preset: Optional[str] = None) -> Optional[str]:
choice = Menu(
_('Select a timezone'),
- list(timezones),
+ timezones,
preset_values=preset,
default_option=default
).run()
@@ -95,7 +95,7 @@ def select_language(preset: Optional[str] = None) -> Optional[str]:
"""
kb_lang = list_keyboard_languages()
# sort alphabetically and then by length
- sorted_kb_lang = sorted(sorted(list(kb_lang)), key=len)
+ sorted_kb_lang = sorted(kb_lang, key=lambda x: (len(x), x))
choice = Menu(
_('Select keyboard layout'),