mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
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:
parent
1124a63798
commit
80618cad85
1 changed files with 3 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue