diff options
author | Aleksei Korkov <akorkov@luxoft.com> | 2020-02-11 18:34:46 +0300 |
---|---|---|
committer | Egor Nemtsev <enemtsev@luxoft.com> | 2020-02-12 07:45:15 +0000 |
commit | 739d890d82ee5bc8578d3d31ba9683ee0e455192 (patch) | |
tree | b459213438b7f740424220dcbc0b32d267e83f5b /sysui | |
parent | 5b0353b925c1050cd1d305e0111880aaeaa7bccd (diff) |
[sysui][settings] Fix switching Rtl-mode
- Rtl-mode was being applied incorrectly. Previously, if we were changing locale, for example, to Arabic, it had no effect on Settings-app itself. It happened because QtRO was not synchronized. Also when we changed language in Remote-app it didn't change its own checkbox for rtl-option.
Fixes: AUTOSUITE-1326
Change-Id: Iab98a506f0782e585a6cf01a1c5dcbd76b85c7fb
Reviewed-by: Egor Nemtsev <enemtsev@luxoft.com>
Diffstat (limited to 'sysui')
-rw-r--r-- | sysui/stores/RootStore.qml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sysui/stores/RootStore.qml b/sysui/stores/RootStore.qml index 6b38b57f..24a22244 100644 --- a/sysui/stores/RootStore.qml +++ b/sysui/stores/RootStore.qml @@ -122,6 +122,7 @@ Store { onLanguageChanged: { if (language !== Config.languageLocale) { Config.languageLocale = language; + uiSettings.setRtlMode(Qt.locale(language).textDirection === Qt.RightToLeft) } } onThemeChanged: root.updateThemeRequested(uiSettings.theme) |