diff options
author | Grigorii Zimin <gzimin@luxoft.com> | 2019-12-17 18:02:36 +0300 |
---|---|---|
committer | Egor Nemtsev <enemtsev@luxoft.com> | 2019-12-18 10:23:30 +0000 |
commit | d9e19fec3e73591e959e5808d3fa9befdb08a8e9 (patch) | |
tree | 30fc32bf9b0887d2b993b586be2ba16ed61de396 /sysui | |
parent | 8bf73de141d61c7c0b147ef86a709dc08b34e406 (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.qml | 3 |
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 {} |