From 324fa68c8e22401dd2920dd85d852983df656db1 Mon Sep 17 00:00:00 2001 From: "Dustin L. Howett" Date: Sat, 19 Feb 2011 05:02:44 -0500 Subject: [PATCH] Don't display "Ignore Upgrades" if the package isn't installed. --- MobileCydia.mm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/MobileCydia.mm b/MobileCydia.mm index 25b3a7ed..c5b0babb 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -7600,7 +7600,10 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { if (package_ == nil) return 0; - return 2; + if ([package_ installed] == nil) + return 1; + else + return 2; } - (NSString *) tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section { -- 2.45.2