Clear notetypes cache on import (#3969)

* Clear notetypes cache on import

* Clear cache in AnkiQt.on_operation_did_execute() instead
This commit is contained in:
Abdo 2025-05-08 16:11:47 +03:00 committed by GitHub
parent 1124a63798
commit 80618cad85
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -872,6 +872,9 @@ class AnkiQt(QMainWindow):
if changes.mtime:
self.toolbar.update_sync_status()
if changes.notetype:
self.col.models._clear_cache()
def on_focus_did_change(
self, new_focus: QWidget | None, _old: QWidget | None
) -> None: