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