Fixing bug #230347: "If automatic checks is off, check for updates is triggered and then remind me later is checked, the dialog keeps coming back" Thanks, Scott Gruby!

This commit is contained in:
Andy Matuschak committed 2008-05-14 09:56:53 -07:00
1 parent 25d1c54766
commit ce43721233
1 file changed
+2 -1
+2 -1
View File
@@ -139,7 +139,8 @@ static SUUpdater *sharedUpdater = nil;
if (object != driver) { return; }
[driver removeObserver:self forKeyPath:@"finished"];
[driver release]; driver = nil;
[NSTimer scheduledTimerWithTimeInterval:checkInterval target:self selector:@selector(checkForUpdatesInBackground) userInfo:nil repeats:NO];
if ([self automaticallyUpdates])
checkTimer = [NSTimer scheduledTimerWithTimeInterval:checkInterval target:self selector:@selector(checkForUpdatesInBackground) userInfo:nil repeats:NO];
}
- (BOOL)automaticallyUpdates