mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Merge 7b7c7e6870
into 4506ad0c97
This commit is contained in:
commit
74baba68b5
2 changed files with 5 additions and 1 deletions
|
@ -242,6 +242,7 @@ Lee Doughty <32392044+leedoughty@users.noreply.github.com>
|
||||||
memchr <memchr@proton.me>
|
memchr <memchr@proton.me>
|
||||||
Max Romanowski <maxr777@proton.me>
|
Max Romanowski <maxr777@proton.me>
|
||||||
Aldlss <ayaldlss@gmail.com>
|
Aldlss <ayaldlss@gmail.com>
|
||||||
|
mcostn <github.com/mcostn>
|
||||||
|
|
||||||
********************
|
********************
|
||||||
|
|
||||||
|
|
|
@ -44,7 +44,10 @@ impl Collection {
|
||||||
})
|
})
|
||||||
// roll back on error
|
// roll back on error
|
||||||
.or_else(|err| {
|
.or_else(|err| {
|
||||||
self.discard_undo_and_study_queues();
|
// not necesarry to discard queues for all errors
|
||||||
|
if !matches!(err, AnkiError::FilteredDeckError { .. }) {
|
||||||
|
self.discard_undo_and_study_queues();
|
||||||
|
}
|
||||||
if autocommit {
|
if autocommit {
|
||||||
self.storage.rollback_trx()?;
|
self.storage.rollback_trx()?;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue