QML UI: break the sync into explicit save local and save cloud

This makes the code much cleaner and easier to understand and should allow
us to then switch back to doing at least the local save right after we make
any changes to the data.

This commit also tries to make sure that the accessingCloud status stays
correct and consistent throughout all the various success and error paths.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2016-04-06 11:47:12 -07:00
parent 3bafc2a4e6
commit 9f7e509f9a
3 changed files with 58 additions and 32 deletions

View file

@ -138,7 +138,7 @@ Kirigami.ApplicationWindow {
onTriggered: {
globalDrawer.close()
detailsWindow.endEditMode()
manager.saveChanges();
manager.saveChangesCloud();
globalDrawer.close()
}
}