Download locally existing remotely modified files in on-demand mode

If a file doesn't exist locally it won't be downloaded until opened, but
if a file does exist locally and has been modified remotely the latest
version will be downloaded at sync time regardless of the file sync
mode. (If a locally existing file has been updated remotely, just
opening it won't currently download the latest version. You have to
sync. This may change in the future.)
This commit is contained in:
Dan Stillman 2013-03-18 20:21:48 -04:00
parent 0853dbc070
commit 8e1b8022ad

View file

@ -755,7 +755,7 @@ Zotero.Sync.Storage = new function () {
}
Zotero.debug("Marking attachment " + lk + " for download");
updatedStates[item.id] = Zotero.Sync.Storage.SYNC_STATE_TO_DOWNLOAD;
updatedStates[item.id] = Zotero.Sync.Storage.SYNC_STATE_FORCE_DOWNLOAD;
}
var mtime = attachmentData[item.id].mtime;