Don't check for updates when run with --dev

closes #312
This commit is contained in:
Corey Johnson
2013-02-26 10:00:17 -08:00
parent 460f77d117
commit c12114743a

View File

@@ -226,10 +226,12 @@
}
else {
_backgroundWindowController = [[AtomWindowController alloc] initInBackground];
SUUpdater.sharedUpdater.delegate = self;
SUUpdater.sharedUpdater.automaticallyChecksForUpdates = YES;
SUUpdater.sharedUpdater.automaticallyDownloadsUpdates = YES;
[SUUpdater.sharedUpdater checkForUpdatesInBackground];
if (![self.arguments objectForKey:@"dev"]) {
SUUpdater.sharedUpdater.delegate = self;
SUUpdater.sharedUpdater.automaticallyChecksForUpdates = YES;
SUUpdater.sharedUpdater.automaticallyDownloadsUpdates = YES;
[SUUpdater.sharedUpdater checkForUpdatesInBackground];
}
}
}