From bacb7018cba2e892a952f80c669cac9f84c31c47 Mon Sep 17 00:00:00 2001 From: Alexandre Wilhelm Date: Thu, 12 Nov 2015 16:29:46 -0800 Subject: [PATCH] Fixed: thread of the spinning was always launched even if the spinner was not displayed in XcodeCapp --- .../XcodeCapp/XCCCappuccinoProjectControllerDataView.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Tools/XcodeCapp/XcodeCapp/XCCCappuccinoProjectControllerDataView.m b/Tools/XcodeCapp/XcodeCapp/XCCCappuccinoProjectControllerDataView.m index 524205f90..82da11a05 100644 --- a/Tools/XcodeCapp/XcodeCapp/XCCCappuccinoProjectControllerDataView.m +++ b/Tools/XcodeCapp/XcodeCapp/XCCCappuccinoProjectControllerDataView.m @@ -93,6 +93,7 @@ static NSColor * XCCCappuccinoProjectDataViewColorError; self->boxStatus.fillColor = XCCCappuccinoProjectDataViewColorStopped; self->buttonSwitchStatus.image = self.backgroundStyle == NSBackgroundStyleDark ? [NSImage imageNamed:@"run-white"] : [NSImage imageNamed:@"run"]; self->operationsProgressIndicator.hidden = YES; + [self->operationsProgressIndicator stopAnimation:self]; break; case XCCCappuccinoProjectStatusListening: @@ -103,6 +104,7 @@ static NSColor * XCCCappuccinoProjectDataViewColorError; { self->operationsProgressIndicator.hidden = YES; [self->operationsProgressIndicator setNeedsDisplay:YES]; + [self->operationsProgressIndicator stopAnimation:self]; } else if (self.controller.operationsTotal <= 4) { @@ -115,6 +117,7 @@ static NSColor * XCCCappuccinoProjectDataViewColorError; self->operationsProgressIndicator.hidden = NO; self->operationsProgressIndicator.indeterminate = NO; self->operationsProgressIndicator.currentValue = self.controller.operationsProgress; + [self->operationsProgressIndicator startAnimation:self]; [self->operationsProgressIndicator setNeedsDisplay:YES]; }