From b21729edd17c8bebea266abec89008e40b0fc617 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Fri, 24 Feb 2017 02:21:29 -0500 Subject: [PATCH] Fix Zotero.Sync.Data.Local._libraryHasUnsyncedFiles() Always returned true --- 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 index 8edc0784dd..15ce16b894 100644 --- 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; }),