Fix reset in locales menu (#2178)
This commit is contained in:
parent
5dda32f17e
commit
332ec0d623
|
|
@ -80,6 +80,9 @@ class LocaleMenu(AbstractSubMenu):
|
||||||
def run(self, allow_reset: bool = True) -> LocaleConfiguration:
|
def run(self, allow_reset: bool = True) -> LocaleConfiguration:
|
||||||
super().run(allow_reset=allow_reset)
|
super().run(allow_reset=allow_reset)
|
||||||
|
|
||||||
|
if not self._data_store:
|
||||||
|
return LocaleConfiguration.default()
|
||||||
|
|
||||||
return LocaleConfiguration(
|
return LocaleConfiguration(
|
||||||
self._data_store['keyboard-layout'],
|
self._data_store['keyboard-layout'],
|
||||||
self._data_store['sys-language'],
|
self._data_store['sys-language'],
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue