www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 0ad439395e2a3e109b9bd623c0c29e8adf6d4416
parent 1a46196080eba918d5b9589169d77285bbff975d
Author: Dan Stillman <dstillman@zotero.org>
Date:   Thu, 14 Dec 2017 23:20:57 -0500

Log skipped libraries

Diffstat:
Mchrome/content/zotero/xpcom/sync/syncRunner.js | 10+++++++---
1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/chrome/content/zotero/xpcom/sync/syncRunner.js b/chrome/content/zotero/xpcom/sync/syncRunner.js @@ -340,10 +340,14 @@ Zotero.Sync.Runner_Module = function (options = {}) { if (syncAllLibraries) { if (access.user && access.user.library) { libraries = [Zotero.Libraries.userLibraryID]; + let skippedLibraries = Zotero.Sync.Data.Local.getSkippedLibraries(); + // If syncing all libraries, remove skipped libraries - libraries = Zotero.Utilities.arrayDiff( - libraries, Zotero.Sync.Data.Local.getSkippedLibraries() - ); + if (skippedLibraries.length) { + Zotero.debug("Skipped libraries:"); + Zotero.debug(skippedLibraries); + libraries = Zotero.Utilities.arrayDiff(libraries, skippedLibraries); + } } } else {