From 290efb9e92d9dc019c32b55c1aa7da862fa26e73 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 20 Aug 2020 15:35:23 +1000 Subject: [PATCH] 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 --- qt/aqt/main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/qt/aqt/main.py b/qt/aqt/main.py index 73332af14..6203e2ace 100644 --- a/qt/aqt/main.py +++ b/qt/aqt/main.py @@ -907,6 +907,7 @@ title="%s" %s>%s""" % ( def on_collection_sync_finished(): self.col.clearUndo() + self.col.models._clear_cache() self.reset() after_sync()