diff options
author | Egor Nemtsev <enemtsev@luxoft.com> | 2020-02-12 12:26:45 +0300 |
---|---|---|
committer | Egor Nemtsev <enemtsev@luxoft.com> | 2020-02-14 08:08:39 +0000 |
commit | b0b3807a804a378e4d73d658b2c14dd2e11bbd49 (patch) | |
tree | 9c79b879b6ced1a3ea3d513cb3dc65fca2f56c11 /sysui | |
parent | 739d890d82ee5bc8578d3d31ba9683ee0e455192 (diff) |
[sysui] init languages on first connection to UISettings
Fixes: AUTOSUITE-1396
Change-Id: I3c09f88b72228122b5efd7783c38411de9e48f2d
Reviewed-by: Grigorii Zimin <gzimin@luxoft.com>
Diffstat (limited to 'sysui')
-rw-r--r-- | sysui/stores/RootStore.qml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sysui/stores/RootStore.qml b/sysui/stores/RootStore.qml index 24a22244..df7ace6e 100644 --- a/sysui/stores/RootStore.qml +++ b/sysui/stores/RootStore.qml @@ -160,6 +160,11 @@ Store { uiSettings.setLanguage("en_US"); } } + // first connection of SystemUI to UISettings backend, got all variables + // from it, init available translations if languages list is empty + if (languages.length === 0) { + languages = Config.translation.availableTranslations; + } } } |