mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-08 11:03:25 -08:00
Apply suggestion from @ZeldaZach
Co-authored-by: Zach H <zahalpern+github@gmail.com>
This commit is contained in:
parent
b611e8ea6f
commit
b10abad3a3
1 changed files with 7 additions and 0 deletions
|
|
@ -666,6 +666,13 @@ void DeckSyncManager::handleConflictDownload(const QString &relativePath, const
|
|||
processNext();
|
||||
return;
|
||||
}
|
||||
if (serverDeck.getContentHash() == localFiles.value(relativePath).hash) {
|
||||
// Same deck, the row just predates hashes: upload once so the server stamps
|
||||
// hash and last_modified instead of asking about identical content.
|
||||
applyUpload(relativePath, ctx.serverPath, ctx.deckId, ctx.guid);
|
||||
processNext();
|
||||
return;
|
||||
}
|
||||
|
||||
DeckSyncSidecar sidecar(sidecarPath);
|
||||
sidecar.load();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue