From 63ae52beba8046c7d3812fbf055dc2725eb3e5f9 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Thu, 3 Mar 2011 13:10:05 -0800 Subject: Consistent application of right and left buttons. --- MobileCydia.mm | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'MobileCydia.mm') 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 { -- cgit v1.2.3