aboutsummaryrefslogtreecommitdiffstats
path: root/Source/YRKSpinningProgressIndicator.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2009-10-22 23:49:30 +0000
committerrowanbeentje <rowan@beent.je>2009-10-22 23:49:30 +0000
commit41b5cc6f8c339fee5af8ac8f07d3b81f9889b975 (patch)
tree4ea7d1110f1e132f4b27f58b4f27bd1f8a819b35 /Source/YRKSpinningProgressIndicator.m
parent20baed5257ce1152c1f25c5a953ca821b50050db (diff)
downloadsequelpro-41b5cc6f8c339fee5af8ac8f07d3b81f9889b975.tar.gz
sequelpro-41b5cc6f8c339fee5af8ac8f07d3b81f9889b975.tar.bz2
sequelpro-41b5cc6f8c339fee5af8ac8f07d3b81f9889b975.zip
- Improve table and task redrawing during threaded table content loads
- Correctly update the table content count when duplicating a row, and cancelling the add. This addresses issue #440.
Diffstat (limited to 'Source/YRKSpinningProgressIndicator.m')
-rw-r--r--Source/YRKSpinningProgressIndicator.m5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/YRKSpinningProgressIndicator.m b/Source/YRKSpinningProgressIndicator.m
index f3ccab87..a1f70e9d 100644
--- a/Source/YRKSpinningProgressIndicator.m
+++ b/Source/YRKSpinningProgressIndicator.m
@@ -287,7 +287,10 @@
{
if (_isIndeterminate) _isIndeterminate = NO;
_currentValue = doubleValue;
- [self displayIfNeeded];
+ if ([NSThread isMainThread])
+ [self displayIfNeeded];
+ else
+ [self performSelectorOnMainThread:@selector(displayIfNeeded) withObject:nil waitUntilDone:NO];
}
- (double)maxValue