mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
if both sides empty, allow either
This commit is contained in:
parent
3484897229
commit
403ac2715c
1 changed files with 2 additions and 2 deletions
|
@ -339,8 +339,8 @@ where
|
||||||
let required = if remote.modified == local.modified {
|
let required = if remote.modified == local.modified {
|
||||||
SyncActionRequired::NoChanges
|
SyncActionRequired::NoChanges
|
||||||
} else if remote.schema != local.schema {
|
} else if remote.schema != local.schema {
|
||||||
let upload_ok = !local.empty;
|
let upload_ok = !local.empty || remote.empty;
|
||||||
let download_ok = !remote.empty;
|
let download_ok = !remote.empty || local.empty;
|
||||||
SyncActionRequired::FullSyncRequired {
|
SyncActionRequired::FullSyncRequired {
|
||||||
upload_ok,
|
upload_ok,
|
||||||
download_ok,
|
download_ok,
|
||||||
|
|
Loading…
Reference in a new issue