summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CyteKit/WebViewController.mm1
-rw-r--r--MobileCydia.mm10
2 files changed, 8 insertions, 3 deletions
diff --git a/CyteKit/WebViewController.mm b/CyteKit/WebViewController.mm
index a750278..c6033bc 100644
--- a/CyteKit/WebViewController.mm
+++ b/CyteKit/WebViewController.mm
@@ -806,6 +806,7 @@ float CYScrollViewDecelerationRateNormal;
[webview_ insertSubview:table atIndex:0];
[self applyLeftButton];
+ [self applyRightButton];
[table setAutoresizingMask:(UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight)];
[webview_ setAutoresizingMask:(UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight)];
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 {