mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-25 09:11:03 +00:00
Ignore start animation if progress indicator view is set to hidden
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@38034 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
a5e0050e55
commit
1765fa3698
1 changed files with 4 additions and 3 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue