enable deck removal undo again
This commit is contained in:
parent
71789eb51a
commit
0ab87b7339
@ -468,7 +468,7 @@ impl Collection {
|
||||
|
||||
pub fn remove_decks_and_child_decks(&mut self, dids: &[DeckID]) -> Result<usize> {
|
||||
let mut card_count = 0;
|
||||
self.transact(None, |col| {
|
||||
self.transact(Some(UndoableOpKind::RemoveDeck), |col| {
|
||||
let usn = col.usn()?;
|
||||
for did in dids {
|
||||
if let Some(deck) = col.storage.get_deck(*did)? {
|
||||
|
Loading…
Reference in New Issue
Block a user