Support disabling “keep bundles updated”

We still update the sources because the user may manually install bundles, and in this case he should install from a recent bundle index.
This commit is contained in:
Allan Odgaard
2013-02-08 12:01:05 +01:00
parent 8c9adfc198
commit a36146235a

View File

@@ -175,7 +175,8 @@ static BundlesManager* SharedInstance;
if(!someSources.empty())
{
bundlesIndex = bundles_db::index(kInstallDirectory);
[self updateBundles:nil];
if(![[NSUserDefaults standardUserDefaults] boolForKey:kUserDefaultsDisableBundleUpdatesKey])
[self updateBundles:nil];
}
else if(!someBundles.empty())
{