Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

'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 1 changed file with 8 additions and 12 deletions. Show diff stats Hide diff stats

  1. +8 12 Plugin/SparkleManager.m
20 Plugin/SparkleManager.m
@@ -106,18 +106,14 @@ - (void)startAutomaticallyCheckingForUpdates {
106 106 // If the key isn't set yet, default to YES, automatically check for updates.
107 107 [[CTFUserDefaultsController standardUserDefaults] setBool:YES forKey:sAutomaticallyCheckForUpdates];
108 108 }
109   - if ([[CTFUserDefaultsController standardUserDefaults] boolForKey:sAutomaticallyCheckForUpdates]) {
110   - static BOOL checkedForUpdate = NO;
111   - if (!checkedForUpdate) {
112   - checkedForUpdate = YES;
113   -
114   - SUUpdater *updater = [self _updater];
115   - if (_canUpdate) {
116   - [updater checkForUpdatesInBackground];
117   - [updater setAutomaticallyChecksForUpdates:YES];
118   - }
119   - }
120   - }
  109 +
  110 + SUUpdater *updater = [self _updater];
  111 + if ([[CTFUserDefaultsController standardUserDefaults] boolForKey:sAutomaticallyCheckForUpdates]) {
  112 + if (_canUpdate) {
  113 + [updater checkForUpdatesInBackground];
  114 + [updater setAutomaticallyChecksForUpdates:YES];
  115 + }
  116 + }
121 117 }
122 118
123 119 - (void)checkForUpdates {

0 comments on commit d8bb666

Please sign in to comment.
Something went wrong with that request. Please try again.