summaryrefslogtreecommitdiff
path: root/MobileCydia.mm
diff options
context:
space:
mode:
authorDustin L. Howett <dustin@howett.net>2011-02-19 05:19:32 -0500
committerDustin L. Howett <dustin@howett.net>2011-02-19 05:19:32 -0500
commit2136717ae1c29d6014d525324a03542e0a8ba9fd (patch)
tree9a37dbe76ec7aea03bf5b89772f7d310b05f6c1a /MobileCydia.mm
parentccfa7494e16dc4c19f52fb9f4b137182764e279a (diff)
Display "Ignore Upgrades" in its own section with its own explanation. Introduces a new string to be translated, IGNORE_UPGRADES_EX.
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r--MobileCydia.mm20
1 files changed, 12 insertions, 8 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index c5b0bab..db250f8 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -7593,25 +7593,29 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
if (package_ == nil)
return 0;
- return 1;
+ if ([package_ installed] == nil)
+ return 1;
+ else
+ return 2;
}
- (NSInteger) tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
if (package_ == nil)
return 0;
- if ([package_ installed] == nil)
- return 1;
- else
- return 2;
+ // both sections contain just one item right now.
+ return 1;
}
- (NSString *) tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section {
- return UCLocalize("CHANGE_PACKAGE_SETTINGS");
+ return nil;
}
- (NSString *) tableView:(UITableView *)tableView titleForFooterInSection:(NSInteger)section {
- return UCLocalize("SHOW_ALL_CHANGES_EX");
+ if (section == 0)
+ return UCLocalize("SHOW_ALL_CHANGES_EX");
+ else
+ return UCLocalize("IGNORE_UPGRADES_EX");
}
- (void) onSubscribed:(id)control {
@@ -7665,7 +7669,7 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
if (package_ == nil)
return nil;
- switch ([indexPath row]) {
+ switch ([indexPath section]) {
case 0: return subscribedCell_;
case 1: return ignoredCell_;