Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

Commit

Permalink
Merge pull request #137 from MatkovIvan/fix/remove-reduntant-dispatch
Browse files Browse the repository at this point in the history
Remove redundant dispatch
  • Loading branch information
Benjamin Scholtysik (Reimold) authored Dec 15, 2017
2 parents a16bbdf + 61e64e1 commit e46bc2d
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions Classes/Feedback/BITFeedbackWindowController.m
Original file line number Diff line number Diff line change
Expand Up @@ -399,12 +399,8 @@ - (void)startLoadingIndicator {
}

- (void)stopLoadingIndicator {

// We need to update the UI on the main thread to make sure it updates right away.
dispatch_async( dispatch_get_main_queue(), ^{
[self.statusBarLoadingIndicator stopAnimation:self];
[self.statusBarLoadingIndicator setHidden:YES];
});
[self.statusBarLoadingIndicator stopAnimation:self];
[self.statusBarLoadingIndicator setHidden:YES];
[self updateLastUpdate];
}

Expand Down

0 comments on commit e46bc2d

Please sign in to comment.