commit b21729edd17c8bebea266abec89008e40b0fc617 parent f7074a75b5592e5f7a9d06fd49cfc2b02c5f8508 Author: Dan Stillman <dstillman@zotero.org> Date: Fri, 24 Feb 2017 02:21:29 -0500 Fix Zotero.Sync.Data.Local._libraryHasUnsyncedFiles() Always returned true Diffstat:
| M | chrome/content/zotero/xpcom/sync/syncLocal.js | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/chrome/content/zotero/xpcom/sync/syncLocal.js b/chrome/content/zotero/xpcom/sync/syncLocal.js @@ -249,7 +249,7 @@ Zotero.Sync.Data.Local = { _libraryHasUnsyncedFiles: Zotero.Promise.coroutine(function* (libraryID) { yield Zotero.Sync.Storage.Local.checkForUpdatedFiles(libraryID); - return !!(yield Zotero.Sync.Storage.Local.getFilesToUpload(libraryID)); + return !!(yield Zotero.Sync.Storage.Local.getFilesToUpload(libraryID)).length; }),