make sure we invalidate cache when undoing deck add
This commit is contained in:
parent
e122f8ae0d
commit
c3b0589bb4
@ -78,6 +78,7 @@ impl Collection {
|
||||
}
|
||||
|
||||
fn remove_deck_undoable(&mut self, deck: Deck) -> Result<()> {
|
||||
self.state.deck_cache.clear();
|
||||
self.storage.remove_deck(deck.id)?;
|
||||
self.save_undo(UndoableDeckChange::Removed(Box::new(deck)));
|
||||
Ok(())
|
||||
|
Loading…
Reference in New Issue
Block a user