зеркало из 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
|
@ -301,6 +301,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");
|
||||
|
||||
|
@ -348,6 +354,7 @@ nsMsgStatusFeedback.prototype =
|
|||
this.statusBar.setAttribute("mode","normal");
|
||||
this.statusBar.value = 0; // be sure to clear the progress bar
|
||||
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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче