mirror of
https://github.com/ankitects/anki.git
synced 2025-11-06 12:47:11 -05:00
make sure renames generated during sync don't get immediately removed
This commit is contained in:
parent
d394aed5fd
commit
1ff6cbc54d
1 changed files with 1 additions and 1 deletions
|
|
@ -287,9 +287,9 @@ where
|
|||
// then update the DB
|
||||
let dirmod = mtime_as_i64(&self.mgr.media_folder)?;
|
||||
self.ctx.transact(|ctx| {
|
||||
record_clean(ctx, &to_remove_pending)?;
|
||||
record_removals(ctx, &to_delete)?;
|
||||
record_additions(ctx, downloaded)?;
|
||||
record_clean(ctx, &to_remove_pending)?;
|
||||
|
||||
// update usn
|
||||
meta.last_sync_usn = last_usn;
|
||||
|
|
|
|||
Loading…
Reference in a new issue