diff --git a/Plugin/SparkleManager.m b/Plugin/SparkleManager.m index ed0c0f29..886aa511 100644 --- a/Plugin/SparkleManager.m +++ b/Plugin/SparkleManager.m @@ -106,18 +106,14 @@ - (void)startAutomaticallyCheckingForUpdates { // If the key isn't set yet, default to YES, automatically check for updates. [[CTFUserDefaultsController standardUserDefaults] setBool:YES forKey:sAutomaticallyCheckForUpdates]; } - if ([[CTFUserDefaultsController standardUserDefaults] boolForKey:sAutomaticallyCheckForUpdates]) { - static BOOL checkedForUpdate = NO; - if (!checkedForUpdate) { - checkedForUpdate = YES; - - SUUpdater *updater = [self _updater]; - if (_canUpdate) { - [updater checkForUpdatesInBackground]; - [updater setAutomaticallyChecksForUpdates:YES]; - } - } - } + + SUUpdater *updater = [self _updater]; + if ([[CTFUserDefaultsController standardUserDefaults] boolForKey:sAutomaticallyCheckForUpdates]) { + if (_canUpdate) { + [updater checkForUpdatesInBackground]; + [updater setAutomaticallyChecksForUpdates:YES]; + } + } } - (void)checkForUpdates {