From 8fa136c0a36cb6f1908bdbbd874c271ffd92b1bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kornel=20Lesin=CC=81ski?= Date: Tue, 3 Jan 2017 16:29:39 +0000 Subject: [PATCH] Invalidate timer when auto-update window is shown In case it's shown manually, not by the timer --- Sparkle/SUAutomaticUpdateDriver.m | 1 + 1 file changed, 1 insertion(+) diff --git a/Sparkle/SUAutomaticUpdateDriver.m b/Sparkle/SUAutomaticUpdateDriver.m index 9ae7eb1e..ab825ffc 100644 --- a/Sparkle/SUAutomaticUpdateDriver.m +++ b/Sparkle/SUAutomaticUpdateDriver.m @@ -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]; }];