summaryrefslogtreecommitdiff
path: root/MobileCydia.mm
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2011-03-03 13:10:05 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2011-03-07 02:41:35 -0800
commit63ae52beba8046c7d3812fbf055dc2725eb3e5f9 (patch)
tree4384e1825a66eb605c5b7b9b02d5cc306e05cea3 /MobileCydia.mm
parente6124cb6861825f588b0cf7be198ea35b5b730ba (diff)
Consistent application of right and left buttons.
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r--MobileCydia.mm10
1 files changed, 7 insertions, 3 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index 9eb5791..296e7c3 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -5049,13 +5049,17 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
[super dealloc];
}
-- (void) updateCancel {
- [[self navigationItem] setLeftBarButtonItem:(cancel_ == 1 ? [[[UIBarButtonItem alloc]
+- (UIBarButtonItem *) leftButton {
+ return cancel_ == 1 ? [[[UIBarButtonItem alloc]
initWithTitle:UCLocalize("CANCEL")
style:UIBarButtonItemStylePlain
target:self
action:@selector(cancel)
- ] autorelease] : nil)];
+ ] autorelease] : nil;
+}
+
+- (void) updateCancel {
+ [super applyLeftButton];
}
- (id) initWithDatabase:(Database *)database delegate:(id)delegate {