mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 23:42:23 -04:00
tell server to save after response received & applied
This commit is contained in:
parent
29978fffb8
commit
060fbb788e
1 changed files with 4 additions and 3 deletions
|
@ -234,11 +234,12 @@ sync was aborted. Please report this error.""")
|
|||
# apply reply
|
||||
self.setStatus(_("Applying reply..."), 0)
|
||||
client.applyPayloadReply(res)
|
||||
# finished. save deck, preserving mod time
|
||||
self.setStatus(_("Sync complete."))
|
||||
# now that both sides have successfully applied, tell
|
||||
# server to save, then save local
|
||||
client.server.finish()
|
||||
self.deck.lastLoaded = self.deck.modified
|
||||
self.deck.s.flush()
|
||||
self.deck.s.commit()
|
||||
self.setStatus(_("Sync complete."))
|
||||
else:
|
||||
changes = False
|
||||
if not deck:
|
||||
|
|
Loading…
Reference in a new issue