mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
remove notetype from cache when removing
This commit is contained in:
parent
6e1d2990a0
commit
bb56e9bc20
1 changed files with 1 additions and 0 deletions
|
@ -387,6 +387,7 @@ impl Collection {
|
|||
// but we need to do it in this layer in the future for undo handling
|
||||
self.transact(None, |col| {
|
||||
col.storage.set_schema_modified()?;
|
||||
col.state.notetype_cache.remove(&ntid);
|
||||
col.storage.remove_notetype(ntid)
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue