From 738490af07943d3090449df0021af628f41de2ad Mon Sep 17 00:00:00 2001 From: Zorg Date: Sun, 1 May 2016 17:09:44 -0400 Subject: [PATCH] Fix not showing that updates can be checked before permission request --- Sparkle/SUUpdater.m | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Sparkle/SUUpdater.m b/Sparkle/SUUpdater.m index 5d541171..ff23b53b 100644 --- a/Sparkle/SUUpdater.m +++ b/Sparkle/SUUpdater.m @@ -314,11 +314,13 @@ NSString *const SUUpdaterAppcastNotificationKey = @"SUUpdaterAppCastNotification { [self.userDriver invalidateUpdateCheckTimer]; - if (![self automaticallyChecksForUpdates]) { - [self.userDriver idleOnUpdateChecks:YES]; + BOOL automaticallyCheckForUpdates = [self automaticallyChecksForUpdates]; + + [self.userDriver showCanCheckForUpdates:!automaticallyCheckForUpdates]; + [self.userDriver idleOnUpdateChecks:!automaticallyCheckForUpdates]; + + if (!automaticallyCheckForUpdates) { return; - } else { - [self.userDriver idleOnUpdateChecks:NO]; } if (firingImmediately) {