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:
scott%scott-macgregor.org 2003-11-14 05:21:40 +00:00
Родитель 8a71fdb9c8
Коммит 1f1cbc43b8
1 изменённых файлов: 8 добавлений и 3 удалений

Просмотреть файл

@ -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)