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 670bf1ef9a
commit 5dc79e22cd

View file

@ -244,7 +244,7 @@ def setupLangAndBackend(
anki.lang.set_lang(lang) anki.lang.set_lang(lang)
# switch direction for RTL languages # 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) app.setLayoutDirection(Qt.LayoutDirection.RightToLeft)
else: else:
app.setLayoutDirection(Qt.LayoutDirection.LeftToRight) app.setLayoutDirection(Qt.LayoutDirection.LeftToRight)