aboutsummaryrefslogtreecommitdiffstats
path: root/sysui
diff options
context:
space:
mode:
authorEgor Nemtsev <enemtsev@luxoft.com>2020-01-31 14:40:22 +0300
committerEgor Nemtsev <enemtsev@luxoft.com>2020-01-31 13:48:30 +0000
commita3f5ae361051d5d483df062fadb74804e0db13cf (patch)
tree4b03d33bf655a4a18e75947f7c0c058b588e52b0 /sysui
parent272912a220ea76597f22c9ddc2a63ebaf1860509 (diff)
[sysui] update widgets state on each change
-- rootstore will save state on almost each change, except "widget order", because ordering is maintained by widgetgrid and this object is located too deep inside objects tree to propagate signals from it Task-number: AUTOSUITE-1439 Change-Id: I9a465c0d8db288bac366faf08f69f68ddbb64cea Reviewed-by: Nikolay Zamotaev <nzamotaev@luxoft.com>
Diffstat (limited to 'sysui')
-rw-r--r--sysui/stores/RootStore.qml3
1 files changed, 3 insertions, 0 deletions
diff --git a/sysui/stores/RootStore.qml b/sysui/stores/RootStore.qml
index 173becb5..f489cdfd 100644
--- a/sysui/stores/RootStore.qml
+++ b/sysui/stores/RootStore.qml
@@ -88,6 +88,9 @@ Store {
onAutostartAppsListChanged: { settingsStore.setValue("autostartApps", applicationModel.serializeAutostart()); }
onAutorecoverAppsListChanged: { settingsStore.setValue("autorecoverApps", applicationModel.serializeAutorecover()); }
onApplicationPopupAdded: applicationPopupsStore.appPopupsModel.append({"window":window});
+ onWidgetStatesChanged: {
+ settingsStore.setValue("widgetStates", applicationModel.serializeWidgetStates());
+ }
}
readonly property ApplicationPopupsStore applicationPopupsStore: ApplicationPopupsStore {}