From 8e1b8022adc41946fbf2146a2c7e6e0a391b6aec Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Mon, 18 Mar 2013 20:21:48 -0400 Subject: [PATCH] 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.) --- chrome/content/zotero/xpcom/storage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/storage.js b/chrome/content/zotero/xpcom/storage.js index 0728867fe4..a3267cd3be 100644 --- a/chrome/content/zotero/xpcom/storage.js +++ b/chrome/content/zotero/xpcom/storage.js @@ -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;