mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
Put sync_did_finish hook before after_sync because it might unload collection
This commit is contained in:
parent
8dcd84e7c0
commit
6e5a826993
1 changed files with 2 additions and 1 deletions
|
@ -909,9 +909,10 @@ title="%s" %s>%s</button>""" % (
|
||||||
self.col.clearUndo()
|
self.col.clearUndo()
|
||||||
self.col.models._clear_cache()
|
self.col.models._clear_cache()
|
||||||
self.reset()
|
self.reset()
|
||||||
after_sync()
|
|
||||||
gui_hooks.sync_did_finish()
|
gui_hooks.sync_did_finish()
|
||||||
|
|
||||||
|
after_sync()
|
||||||
|
|
||||||
gui_hooks.sync_will_start()
|
gui_hooks.sync_will_start()
|
||||||
sync_collection(self, on_done=on_collection_sync_finished)
|
sync_collection(self, on_done=on_collection_sync_finished)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue