Fix opacity of lines in progress popup when using addLines()

Lines default to 50%, but addLines() doesn't provide a mechanism for
updating the opacity, so all the callers that used addLines() showed as
gray. Instead, just default to 100% when using addLines().
This commit is contained in:
Dan Stillman 2016-12-09 06:05:47 -05:00
parent 78b1d2ee35
commit 142694ca0f

View file

@ -197,10 +197,12 @@ Zotero.ProgressWindow = function(_window = null) {
this.addLines = _deferUntilWindowLoad(function addLines(labels, icons) {
if(typeof labels === "object" && typeof icons === "object") {
for (var i in labels) {
new this.ItemProgress(icons[i], labels[i]);
let progress = new this.ItemProgress(icons[i], labels[i]);
progress.setProgress(100);
}
} else {
new this.ItemProgress(icons, labels);
let progress = new this.ItemProgress(icons, labels);
progress.setProgress(100);
}
_move();