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:
parent
78b1d2ee35
commit
142694ca0f
1 changed files with 4 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue