diff options
Diffstat (limited to 'Source/SPDatabaseDocument.m')
-rw-r--r-- | Source/SPDatabaseDocument.m | 13 |
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 |