Don't look up library name for each downloaded file
This commit is contained in:
parent
b0826fd91d
commit
a24f16eb85
1 changed files with 3 additions and 4 deletions
|
@ -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
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue