aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPDatabaseDocument.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2010-12-05 22:25:24 +0000
committerrowanbeentje <rowan@beent.je>2010-12-05 22:25:24 +0000
commit3de284fa904c295f306ec047fc29289399424836 (patch)
tree631625497103deed521ccd2508a56a81afa6671f /Source/SPDatabaseDocument.m
parentbedc1d11d6bedb4239b8f083b88b26d171ced3b3 (diff)
downloadsequelpro-3de284fa904c295f306ec047fc29289399424836.tar.gz
sequelpro-3de284fa904c295f306ec047fc29289399424836.tar.bz2
sequelpro-3de284fa904c295f306ec047fc29289399424836.zip
- Add the ability to stop animation of the task indicator, and use it to pause the task indicator animation when custom queries are paused and waiting for user interaction after an error
Diffstat (limited to 'Source/SPDatabaseDocument.m')
-rw-r--r--Source/SPDatabaseDocument.m13
1 files changed, 13 insertions, 0 deletions
diff --git a/Source/SPDatabaseDocument.m b/Source/SPDatabaseDocument.m
index 43d71b01..9f14c3ed 100644
--- a/Source/SPDatabaseDocument.m
+++ b/Source/SPDatabaseDocument.m
@@ -1223,6 +1223,19 @@
[taskProgressWindow setFrameOrigin:newBottomLeftPoint];
}
+/**
+ * Support pausing and restarting the task progress indicator.
+ * Only works while the indicator is in indeterminate mode.
+ */
+- (void) setTaskIndicatorShouldAnimate:(BOOL)shouldAnimate
+{
+ if (shouldAnimate) {
+ [[taskProgressIndicator onMainThread] startAnimation:self];
+ } else {
+ [[taskProgressIndicator onMainThread] stopAnimation:self];
+ }
+}
+
#pragma mark -
#pragma mark Encoding Methods