Revert "Avoid setting RTL on first run"

This reverts commit 5dc79e22cd.

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 968a14784f
commit 449338d7ec

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)