Fix reset in locales menu (#2178)

This commit is contained in:
codefiles 2023-10-17 05:21:39 -04:00 committed by GitHub
parent 5dda32f17e
commit 332ec0d623
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -80,6 +80,9 @@ class LocaleMenu(AbstractSubMenu):
def run(self, allow_reset: bool = True) -> LocaleConfiguration:
super().run(allow_reset=allow_reset)
if not self._data_store:
return LocaleConfiguration.default()
return LocaleConfiguration(
self._data_store['keyboard-layout'],
self._data_store['sys-language'],