summaryrefslogtreecommitdiff
path: root/MobileCydia.mm
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2011-03-02 08:46:28 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2011-03-07 02:41:34 -0800
commit297566744d63fffb6f2023cd58de7d4b0300a95f (patch)
treee754c81bf752a149b52f5b6932aa7280adfa94f6 /MobileCydia.mm
parentd53628b6a4db45ae954921570124a646e027b086 (diff)
Fit ManageController to CyteWebViewController {custom,right}Button API.
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r--MobileCydia.mm33
1 files changed, 9 insertions, 24 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index 52081b2..2257a19 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -6459,46 +6459,31 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
target:self
action:@selector(settingsButtonClicked)
] autorelease]];
-
- [self queueStatusDidChange];
}
- (void) settingsButtonClicked {
[delegate_ showSettings];
}
-#if !AlwaysReload
- (void) queueButtonClicked {
[delegate_ queue];
}
-- (void) applyLoadingTitle {
- // Disable "Loading" title.
-}
-
-- (void) applyRightButton {
- // Disable right button.
+- (UIBarButtonItem *) customButton {
+ return Queuing_ ? [[[UIBarButtonItem alloc]
+ initWithTitle:UCLocalize("QUEUE")
+ style:UIBarButtonItemStyleDone
+ target:self
+ action:@selector(queueButtonClicked)
+ ] autorelease] : [super customButton];
}
-#endif
- (void) queueStatusDidChange {
-#if !AlwaysReload
- if (!IsWildcat_ && Queuing_) {
- [[self navigationItem] setRightBarButtonItem:[[[UIBarButtonItem alloc]
- initWithTitle:UCLocalize("QUEUE")
- style:UIBarButtonItemStyleDone
- target:self
- action:@selector(queueButtonClicked)
- ] autorelease]];
- } else {
- [[self navigationItem] setRightBarButtonItem:nil];
- }
-#endif
+ [self applyRightButton];
}
- (bool) isLoading {
- // Never show as loading.
- return false;
+ return !Queuing_ && [super isLoading];
}
@end