Don't check for updates during benchmarks or tests

This commit is contained in:
Corey Johnson & Kevin Sawicki 2013-02-22 16:50:19 -08:00
parent 2c986fdbfc
commit e202b622e8

View File

@ -213,11 +213,6 @@
}
- (void)applicationWillFinishLaunching:(NSNotification *)notification {
SUUpdater.sharedUpdater.delegate = self;
SUUpdater.sharedUpdater.automaticallyChecksForUpdates = YES;
SUUpdater.sharedUpdater.automaticallyDownloadsUpdates = YES;
[SUUpdater.sharedUpdater checkForUpdatesInBackground];
_backgroundWindowController = [[AtomWindowController alloc] initInBackground];
if ([self.arguments objectForKey:@"benchmark"]) {
[self runBenchmarksThenExit:true];
@ -225,6 +220,12 @@
else if ([self.arguments objectForKey:@"test"]) {
[self runSpecsThenExit:true];
}
else {
SUUpdater.sharedUpdater.delegate = self;
SUUpdater.sharedUpdater.automaticallyChecksForUpdates = YES;
SUUpdater.sharedUpdater.automaticallyDownloadsUpdates = YES;
[SUUpdater.sharedUpdater checkForUpdatesInBackground];
}
}
- (void)applicationWillTerminate:(NSNotification *)notification {