mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-06 22:54:16 +02:00
[fix][ui][settings] not matching the default system locale with the available options
This commit is contained in:
@@ -203,8 +203,12 @@ class GenericSettingsManager:
|
||||
if core_config['locale']:
|
||||
current_locale = [l for l in locale_opts if l.value == core_config['locale']]
|
||||
|
||||
if not current_locale and self.i18n.default_key:
|
||||
current_locale = [l for l in locale_opts if l.value == self.i18n.default_key]
|
||||
if not current_locale:
|
||||
if self.i18n.current_key:
|
||||
current_locale = [l for l in locale_opts if l.value == self.i18n.current_key]
|
||||
|
||||
if not current_locale:
|
||||
current_locale = [l for l in locale_opts if l.value == self.i18n.default_key]
|
||||
|
||||
current_locale = current_locale[0] if current_locale else None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user