Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

'Check Now' button is now still enabled even if automatically checkin…

…g for updates is off (bug #200)
  • Loading branch information...
commit d8bb666ad9cf007e1d581dba656bde2c80cbd340 1 parent 1cbc626
Simone Manganelli authored
Showing with 8 additions and 12 deletions.
  1. +8 −12 Plugin/SparkleManager.m
View
20 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 {
Please sign in to comment.
Something went wrong with that request. Please try again.