r272 - trunk

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Wed May 16 20:35:42 EDT 2007


Author: icculus
Date: 2007-05-16 20:35:42 -0400 (Wed, 16 May 2007)
New Revision: 272

Modified:
   trunk/gui_stdio.c
Log:
stdio gui: Don't show total progress if it's indeterminate.


Modified: trunk/gui_stdio.c
===================================================================
--- trunk/gui_stdio.c	2007-05-17 00:11:12 UTC (rev 271)
+++ trunk/gui_stdio.c	2007-05-17 00:35:42 UTC (rev 272)
@@ -365,7 +365,10 @@
     {
         percentTicks = now + 1000;
         // !!! FIXME: localization.
-        printf(entry->_("%s (total progress: %d%%)\n"), item, percent);
+        if (percent < 0)
+            printf(entry->_("%s\n"), item);
+        else
+            printf(entry->_("%s (total progress: %d%%)\n"), item, percent);
     } // if
 
     return true;




More information about the mojosetup-commits mailing list