Author: mlytwyn
Date: Mon Aug  4 23:22:13 2014
New Revision: 38034

URL: http://svn.gna.org/viewcvs/gnustep?rev=38034&view=rev
Log:
Ignore start animation if progress indicator view is set to hidden

Modified:
    libs/gui/branches/gnustep_testplant_branch/Source/NSProgressIndicator.m

Modified: 
libs/gui/branches/gnustep_testplant_branch/Source/NSProgressIndicator.m
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/gui/branches/gnustep_testplant_branch/Source/NSProgressIndicator.m?rev=38034&r1=38033&r2=38034&view=diff
==============================================================================
--- libs/gui/branches/gnustep_testplant_branch/Source/NSProgressIndicator.m     
(original)
+++ libs/gui/branches/gnustep_testplant_branch/Source/NSProgressIndicator.m     
Mon Aug  4 23:22:13 2014
@@ -85,7 +85,9 @@
 {
   if (!_isIndeterminate && (_style == NSProgressIndicatorBarStyle))
     return;
-
+  if ([self isHidden] == YES)
+    return; // Don't update if hidden...
+  
   // Let this value overflow when it reachs the limit
   _count++;
 
@@ -125,8 +127,7 @@
   if (_isRunning || (!_isIndeterminate 
                      && (_style == NSProgressIndicatorBarStyle)))
     return;
-
-  [self setHidden:NO];
+  
   _isRunning = YES;
   if (!_usesThreadedAnimation)
     {


_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs

Reply via email to