Put sync_did_finish hook before after_sync because it might unload collection

This commit is contained in:
Henrik Giesel 2020-09-14 13:06:20 +02:00
parent 8dcd84e7c0
commit 6e5a826993

View file

@ -909,9 +909,10 @@ title="%s" %s>%s</button>""" % (
self.col.clearUndo()
self.col.models._clear_cache()
self.reset()
after_sync()
gui_hooks.sync_did_finish()
after_sync()
gui_hooks.sync_will_start()
sync_collection(self, on_done=on_collection_sync_finished)