Compare commits

...

4 commits

Author SHA1 Message Date
mcostn
74baba68b5
Merge 7b7c7e6870 into 4506ad0c97 2025-09-14 21:22:40 +03:00
mcostn
7b7c7e6870
Merge branch 'main' into fix-filtered-deck-undo 2025-09-04 16:26:46 +03:00
mcostn
b2791f92a4 Update CONTRIBUTORS 2025-09-03 21:18:39 +03:00
mcostn
f9c9c8c2ff Fix undo queue being cleared on every error
This only discards the undo and study queues when the error is not a
FilteredDeckError
2025-09-03 20:52:19 +03:00
2 changed files with 5 additions and 1 deletions

View file

@ -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>
********************

View file

@ -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 {