mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Compare commits
4 commits
3009bd5aa4
...
74baba68b5
Author | SHA1 | Date | |
---|---|---|---|
![]() |
74baba68b5 | ||
![]() |
7b7c7e6870 | ||
![]() |
b2791f92a4 | ||
![]() |
f9c9c8c2ff |
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>
|
||||
Max Romanowski <maxr777@proton.me>
|
||||
Aldlss <ayaldlss@gmail.com>
|
||||
mcostn <github.com/mcostn>
|
||||
|
||||
********************
|
||||
|
||||
|
|
|
@ -44,7 +44,10 @@ impl Collection {
|
|||
})
|
||||
// roll back on error
|
||||
.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 {
|
||||
self.storage.rollback_trx()?;
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue