From 449338d7ec75253868a9984b0513a4709ec5ea58 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Tue, 13 Dec 2022 10:34:34 +1000 Subject: [PATCH] Revert "Avoid setting RTL on first run" This reverts commit 5dc79e22cdc2c1f0d4e48dacc4269292d3227ee3. 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 --- qt/aqt/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qt/aqt/__init__.py b/qt/aqt/__init__.py index 5aee5ab5d..378f058e3 100644 --- a/qt/aqt/__init__.py +++ b/qt/aqt/__init__.py @@ -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)