need to invalidate notetype cache on sync completion

basicCheck() was populating it on startup sync, leading to
https://forums.ankiweb.net/t/error-when-adding-a-new-note/1664
This commit is contained in:
Damien Elmes 2020-08-20 15:35:23 +10:00
parent 41544c57d5
commit 290efb9e92

View file

@ -907,6 +907,7 @@ title="%s" %s>%s</button>""" % (
def on_collection_sync_finished():
self.col.clearUndo()
self.col.models._clear_cache()
self.reset()
after_sync()