Re-init alert when called again

A lazy way to bring it to front
This commit is contained in:
Kornel Lesiński committed 2017-01-03 17:42:18 +00:00
1 parent 8fa136c0a3
commit 49845d8246
1 file changed
+5
+5
View File
@@ -50,6 +50,11 @@ static const NSTimeInterval SUAutomaticUpdatePromptImpatienceTimer = 60 * 60 * 2
{
self.interruptible = NO;
[self invalidateShowUpdateAlertTimer];
if (self.alert) {
[self.alert close];
}
self.alert = [[SUAutomaticUpdateAlert alloc] initWithAppcastItem:self.updateItem host:self.host completionBlock:^(SUAutomaticInstallationChoice choice) {
[self automaticUpdateAlertFinishedWithChoice:choice];
}];