mirror of
https://github.com/ankitects/anki.git
synced 2025-11-07 13:17:12 -05:00
fix wrong language selected in prefs screen
This commit is contained in:
parent
5fd2eaba21
commit
fd81fca4aa
1 changed files with 4 additions and 1 deletions
|
|
@ -59,8 +59,11 @@ class Preferences(QDialog):
|
|||
|
||||
def langIdx(self):
|
||||
codes = [x[1] for x in anki.lang.langs]
|
||||
lang = anki.lang.currentLang
|
||||
if lang in anki.lang.compatMap:
|
||||
lang = anki.lang.compatMap[lang]
|
||||
try:
|
||||
return codes.index(anki.lang.currentLang)
|
||||
return codes.index(lang)
|
||||
except:
|
||||
return codes.index("en_US")
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue