[Aptitude-svn-commit] r3784 - in branches/aptitude-0.3/aptitude: . src

Daniel Burrows dburrows at costa.debian.org
Tue Aug 9 16:19:34 UTC 2005


Author: dburrows
Date: Tue Aug  9 16:19:31 2005
New Revision: 3784

Modified:
   branches/aptitude-0.3/aptitude/ChangeLog
   branches/aptitude-0.3/aptitude/src/vs_progress.cc
Log:
Fix the problem where a progress bar would hang around during downloads.

Modified: branches/aptitude-0.3/aptitude/ChangeLog
==============================================================================
--- branches/aptitude-0.3/aptitude/ChangeLog	(original)
+++ branches/aptitude-0.3/aptitude/ChangeLog	Tue Aug  9 16:19:31 2005
@@ -1,3 +1,12 @@
+2005-08-09  Daniel Burrows  <dburrows at debian.org>
+
+	* src/vs_progress.cc:
+
+	  Hide the progress bar in Done *after* triggering a screen
+	  update, and un-hide it in Update().  With this change, progress
+	  bars will be displayed across multiple Done() calls, but will
+	  hide themselves after the last Done() call.
+
 2005-08-08  Daniel Burrows  <dburrows at debian.org>
 
 	* src/ui.cc:

Modified: branches/aptitude-0.3/aptitude/src/vs_progress.cc
==============================================================================
--- branches/aptitude-0.3/aptitude/src/vs_progress.cc	(original)
+++ branches/aptitude-0.3/aptitude/src/vs_progress.cc	Tue Aug  9 16:19:31 2005
@@ -66,6 +66,8 @@
 
 void vs_progress::Update()
 {
+  show();
+
   if(CheckChange(0.25))
     {
       vscreen_update();
@@ -79,6 +81,7 @@
   vscreen_update();
   vscreen_updatecursor();
   vscreen_tryupdate();
+  hide();
 }
 
 int vs_progress::width_request()



More information about the Aptitude-svn-commit mailing list