aboutsummaryrefslogtreecommitdiffstats
path: root/sysui
diff options
context:
space:
mode:
authorGrigorii Zimin <gzimin@luxoft.com>2019-12-18 07:46:45 +0300
committerGrigorii Zimin <gzimin@luxoft.com>2019-12-18 10:04:48 +0000
commit8bf73de141d61c7c0b147ef86a709dc08b34e406 (patch)
tree964015f11ab9ceb190476ce64986b555b7c2648a /sysui
parentd6f6924b48742891b85e6266e87c0c4dea929c90 (diff)
[sysui] delay model populating
-- whole this "model.populating" process needs to be reworked, because there is no any control for model filing (model is filled by appmnan itself) and than we try to launch some apps in proper windows. This change is hotfix, its aim is to be sure that when we want to launch some app that app is ready to be launched Fixes: AUTOSUITE-1390 Change-Id: I97065226250071f2d78c26e97bc13486f7208937 Reviewed-by: Egor Nemtsev <enemtsev@luxoft.com>
Diffstat (limited to 'sysui')
-rw-r--r--sysui/centerconsole/CenterConsoleWindow.qml39
1 files changed, 23 insertions, 16 deletions
diff --git a/sysui/centerconsole/CenterConsoleWindow.qml b/sysui/centerconsole/CenterConsoleWindow.qml
index f6321cf6..f23966e1 100644
--- a/sysui/centerconsole/CenterConsoleWindow.qml
+++ b/sysui/centerconsole/CenterConsoleWindow.qml
@@ -82,24 +82,31 @@ Window {
Connections {
id: windowConns
target: root
+ readonly property string widgetStates: root.store.settingsStore.value("widgetStates"
+ , root.store.settingsStore.defaultWidgetStates)
+ readonly property string autostartApps: root.store.settingsStore.value("autostartApps"
+ , root.store.settingsStore.defaultAutostartApps)
+ readonly property string autorecoverApps: root.store.settingsStore.value("autorecoverApps"
+ , root.store.settingsStore.defaultAutorecoverApps)
onFrameSwapped: {
/*
- The UI is loaded in two steps
- This is done in order to ensure that something is rendered on the screen as
- soon as possible during start up.
-
- Only the lightest elements are present upon creation of this component.
- They are the ones that will be present on the very first rendered frame.
-
- Others, which are more complex and thus take more time to load, will be
- loaded afterwards, once this function is called.
- */
- root.store.applicationModel.populate(root.store.settingsStore.value("widgetStates", root.store.settingsStore.defaultWidgetStates),
- root.store.settingsStore.value("autostartApps", root.store.settingsStore.defaultAutostartApps),
- root.store.settingsStore.value("autorecoverApps", root.store.settingsStore.defaultAutorecoverApps));
- centerConsole.mainContentArea.active = true;
- notificationLoader.active = true;
- windowConns.enabled = false;
+ The UI is loaded in two steps
+ This is done in order to ensure that something is rendered on the screen as
+ soon as possible during start up.
+
+ Only the lightest elements are present upon creation of this component.
+ They are the ones that will be present on the very first rendered frame.
+
+ Others, which are more complex and thus take more time to load, will be
+ loaded afterwards, once this function is called.
+ */
+ if (root.store.applicationModel.count > 0) {
+ root.store.applicationModel.populate(
+ widgetStates, autostartApps, autorecoverApps);
+ centerConsole.mainContentArea.active = true;
+ notificationLoader.active = true;
+ windowConns.enabled = false;
+ }
}
}