aboutsummaryrefslogtreecommitdiffstats
path: root/sysui
diff options
context:
space:
mode:
authorAleksei Korkov <akorkov@luxoft.com>2020-02-11 18:34:46 +0300
committerEgor Nemtsev <enemtsev@luxoft.com>2020-02-12 07:45:15 +0000
commit739d890d82ee5bc8578d3d31ba9683ee0e455192 (patch)
treeb459213438b7f740424220dcbc0b32d267e83f5b /sysui
parent5b0353b925c1050cd1d305e0111880aaeaa7bccd (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.qml1
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)