Don't look up library name for each downloaded file

This commit is contained in:
Dan Stillman 2017-08-13 03:26:23 +02:00
parent b0826fd91d
commit a24f16eb85

View file

@ -612,10 +612,9 @@ Zotero.Sync.Runner_Module = function (options = {}) {
var resyncLibraries = []
for (let libraryID of libraries) {
_stopCheck();
let libraryName = Zotero.Libraries.get(libraryID).name;
this.setSyncStatus(
Zotero.getString(
'sync.status.syncingFilesInLibrary', Zotero.Libraries.get(libraryID).name
)
Zotero.getString('sync.status.syncingFilesInLibrary', libraryName)
);
try {
let opts = {
@ -624,7 +623,7 @@ Zotero.Sync.Runner_Module = function (options = {}) {
this.setSyncStatus(
Zotero.getString(
'sync.status.syncingFilesInLibraryWithRemaining',
[Zotero.Libraries.get(libraryID).name, remaining],
[libraryName, remaining],
remaining
)
);