Skip to content

Commit

Permalink
Fix language selection after override
Browse files Browse the repository at this point in the history
This fixes a small issue where after we have overridden the language
we fail to load the dialog again.
  • Loading branch information
kk7ds committed May 23, 2024
1 parent 820fb1a commit d260f7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chirp/wxui/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1471,7 +1471,7 @@ def fmt_lang(lang):
try:
current = wx.Locale.FindLanguageInfo(
CONF.get('force_language', 'prefs'))
initial = choices.index(fmt_lang(current.DescriptionNative))
initial = choices.index(fmt_lang(current))
except TypeError:
# Unset in the config (i.e. None)
initial = 0
Expand Down

0 comments on commit d260f7e

Please sign in to comment.