aboutsummaryrefslogtreecommitdiffstats
path: root/sysui
diff options
context:
space:
mode:
authorGrigorii Zimin <gzimin@luxoft.com>2019-12-17 18:02:36 +0300
committerEgor Nemtsev <enemtsev@luxoft.com>2019-12-18 10:23:30 +0000
commitd9e19fec3e73591e959e5808d3fa9befdb08a8e9 (patch)
tree30fc32bf9b0887d2b993b586be2ba16ed61de396 /sysui
parent8bf73de141d61c7c0b147ef86a709dc08b34e406 (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-1390 Change-Id: I9a465c0d8db288bac366faf08f69f68ddbb64cea Reviewed-by: Egor Nemtsev <enemtsev@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 4f523641..34528512 100644
--- a/sysui/stores/RootStore.qml
+++ b/sysui/stores/RootStore.qml
@@ -100,6 +100,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 {}