зеркало из https://github.com/mozilla/gecko-dev.git
Hook up the progressmeter in thunderbird so it becomes visible when we have progress to show
and it gets hidden when we stop the meteors.
This commit is contained in:
Родитель
8a71fdb9c8
Коммит
1f1cbc43b8
|
@ -300,6 +300,12 @@ nsMsgStatusFeedback.prototype =
|
|||
|
||||
this.meteorsSpinning = true;
|
||||
this.startTimeoutID = null;
|
||||
|
||||
if (!this.progressMeterVisible)
|
||||
{
|
||||
this.progressMeterContainer.removeAttribute('collapsed');
|
||||
this.progressMeterVisible = true;
|
||||
}
|
||||
|
||||
// Turn progress meter on.
|
||||
this.statusBar.setAttribute("mode","undetermined");
|
||||
|
@ -347,7 +353,8 @@ nsMsgStatusFeedback.prototype =
|
|||
// Turn progress meter off.
|
||||
this.statusBar.setAttribute("mode","normal");
|
||||
this.statusBar.value = 0; // be sure to clear the progress bar
|
||||
this.statusBar.label = "";
|
||||
this.statusBar.label = "";
|
||||
|
||||
if (this.progressMeterVisible)
|
||||
{
|
||||
this.progressMeterContainer.collapsed = true;
|
||||
|
@ -388,8 +395,6 @@ nsMsgStatusFeedback.prototype =
|
|||
this.statusBar.setAttribute("mode", "normal");
|
||||
this.statusBar.value = percentage;
|
||||
this.statusBar.label = Math.round(percentage) + "%";
|
||||
if (this.progressMeterVisible)
|
||||
this.progressMeterContainer.collapsed = false;
|
||||
}
|
||||
},
|
||||
closeWindow : function(percent)
|
||||
|
|
Загрузка…
Ссылка в новой задаче