www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 142694ca0f43455411ea395a8cba45b797401640
parent 78b1d2ee35ed56420bfb4f34b73d9971365e5e71
Author: Dan Stillman <dstillman@zotero.org>
Date:   Fri,  9 Dec 2016 06:05:47 -0500

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().

Diffstat:
Mchrome/content/zotero/xpcom/progressWindow.js | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/chrome/content/zotero/xpcom/progressWindow.js b/chrome/content/zotero/xpcom/progressWindow.js @@ -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();