From b1e00687953de168bbc31ea435b2c5bdc7c61e39 Mon Sep 17 00:00:00 2001 From: codefiles <11915375+codefiles@users.noreply.github.com> Date: Wed, 20 Sep 2023 02:04:23 -0400 Subject: Use `_preset` for defaults in `LocaleMenu` (#2071) * Use `_preset` for defaults in `LocaleMenu` * Fix adjacent typos --- archinstall/lib/locale/locale_menu.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/archinstall/lib/locale/locale_menu.py b/archinstall/lib/locale/locale_menu.py index 29dd775d..2e254315 100644 --- a/archinstall/lib/locale/locale_menu.py +++ b/archinstall/lib/locale/locale_menu.py @@ -52,9 +52,9 @@ class LocaleMenu(AbstractSubMenu): def __init__( self, data_store: Dict[str, Any], - locele_conf: LocaleConfiguration + locale_conf: LocaleConfiguration ): - self._preset = locele_conf + self._preset = locale_conf super().__init__(data_store=data_store) def setup_selection_menu_options(self): @@ -62,19 +62,19 @@ class LocaleMenu(AbstractSubMenu): Selector( _('Keyboard layout'), lambda preset: self._select_kb_layout(preset), - default='us', + default=self._preset.kb_layout, enabled=True) self._menu_options['sys-language'] = \ Selector( _('Locale language'), lambda preset: select_locale_lang(preset), - default='en_US', + default=self._preset.sys_lang, enabled=True) self._menu_options['sys-encoding'] = \ Selector( _('Locale encoding'), lambda preset: select_locale_enc(preset), - default='UTF-8', + default=self._preset.sys_enc, enabled=True) def run(self, allow_reset: bool = True) -> LocaleConfiguration: -- cgit v1.2.3-70-g09d2