aboutsummaryrefslogtreecommitdiffstats
path: root/Source/YRKSpinningProgressIndicator.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/YRKSpinningProgressIndicator.m')
-rw-r--r--Source/YRKSpinningProgressIndicator.m5
1 files changed, 1 insertions, 4 deletions
diff --git a/Source/YRKSpinningProgressIndicator.m b/Source/YRKSpinningProgressIndicator.m
index a1f70e9d..935d613c 100644
--- a/Source/YRKSpinningProgressIndicator.m
+++ b/Source/YRKSpinningProgressIndicator.m
@@ -287,10 +287,7 @@
{
if (_isIndeterminate) _isIndeterminate = NO;
_currentValue = doubleValue;
- if ([NSThread isMainThread])
- [self displayIfNeeded];
- else
- [self performSelectorOnMainThread:@selector(displayIfNeeded) withObject:nil waitUntilDone:NO];
+ [self setNeedsDisplay:YES];
}
- (double)maxValue