Revert "Avoid setting RTL on first run"

This reverts commit 1bb6afb394.

I appear to have been confused in my earlier testing, as reverting
this change seems to make no difference the top bar on first startup,
and fixes a bunch of other regressions that the original change introduced.

https://github.com/ankitects/anki/issues/2269
This commit is contained in:
Damien Elmes 2022-12-13 10:34:34 +10:00
parent ee065485ad
commit 29b1bde928

View file

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