Avoid setting RTL on first run

I'm not sure why, but this seems to address the first issue mentioned on
https://forums.ankiweb.net/t/anki-2-1-55-beta-5/24870/58
This commit is contained in:
Damien Elmes 2022-11-30 19:19:22 +10:00
parent 5311210849
commit 1bb6afb394

View file

@ -244,7 +244,7 @@ def setupLangAndBackend(
anki.lang.set_lang(lang)
# switch direction for RTL languages
if anki.lang.is_rtl(lang):
if anki.lang.is_rtl(lang) and not firstTime:
app.setLayoutDirection(Qt.LayoutDirection.RightToLeft)
else:
app.setLayoutDirection(Qt.LayoutDirection.LeftToRight)