Skip to content

Commit

Permalink
'Check Now' button is now still enabled even if automatically checkin…
Browse files Browse the repository at this point in the history
…g for updates is off (bug #200)
  • Loading branch information
Simone Manganelli authored and Simone Manganelli committed Jul 2, 2009
1 parent 1cbc626 commit d8bb666
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions Plugin/SparkleManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit d8bb666

Please sign in to comment.