From: Jay Freeman (saurik) Date: Sat, 5 Mar 2011 13:30:17 +0000 (-0800) Subject: Standardize _reloadData code ordering. X-Git-Tag: v1.1.0%b1~58 X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/bdca103d53eaea3c77db19c102282778c74564e6 Standardize _reloadData code ordering. --- diff --git a/MobileCydia.mm b/MobileCydia.mm index 37d3d93b..e3e85aca 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -7497,8 +7497,6 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { era_ = [database_ era]; NSArray *packages = [database_ packages]; - [sections_ removeAllObjects]; - #if 1 UIProgressHUD *hud([delegate_ addProgressHUD]); [hud setText:UCLocalize("LOADING")]; @@ -7509,6 +7507,8 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { [self _reloadPackages:packages]; #endif + [sections_ removeAllObjects]; + Section *upgradable = [[[Section alloc] initWithName:UCLocalize("AVAILABLE_UPGRADES") localize:NO] autorelease]; Section *ignored = nil; Section *section = nil;