Invalidate timer when auto-update window is shown

In case it's shown manually, not by the timer
This commit is contained in:
Kornel Lesiński committed 2017-01-03 17:42:18 +00:00
1 parent 266be254d2
commit 8fa136c0a3
1 file changed
+1
+1
View File
@@ -49,6 +49,7 @@ static const NSTimeInterval SUAutomaticUpdatePromptImpatienceTimer = 60 * 60 * 2
- (void)showUpdateAlert
{
self.interruptible = NO;
[self invalidateShowUpdateAlertTimer];
self.alert = [[SUAutomaticUpdateAlert alloc] initWithAppcastItem:self.updateItem host:self.host completionBlock:^(SUAutomaticInstallationChoice choice) {
[self automaticUpdateAlertFinishedWithChoice:choice];
}];