summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2010-12-01 01:00:37 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2010-12-01 01:46:28 -0800
commitf6371a338e1705943caf5e91f967ad44d0ab3646 (patch)
tree3fbfd42372b0057f31d23eefa98d3ab7dc9c9052
parent7e30ba6d14347dc13d03b75031859bd4cc411a5f (diff)
Make the Q'd UI actually respond to queue changes.
-rw-r--r--MobileCydia.mm14
1 files changed, 8 insertions, 6 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index d6adeba..76dd263 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -8009,6 +8009,9 @@ typedef enum {
- (void) setPage:(CYViewController *)page;
- (void) loadData;
+// XXX: I hate prototypes
+- (id) queueBadgeController;
+
@end
static _finline void _setHomePage(Cydia *self) {
@@ -8093,6 +8096,9 @@ static _finline void _setHomePage(Cydia *self) {
[search_ reloadData];
[(CYNavigationController *)[tabbar_ selectedViewController] reloadData];
+
+ [queueDelegate_ queueStatusDidChange];
+ [[[self queueBadgeController] tabBarItem] setBadgeValue:(Queuing_ ? UCLocalize("Q_D") : nil)];
}
- (int)indexOfTabWithTag:(int)tag {
@@ -8340,6 +8346,8 @@ static _finline void _setHomePage(Cydia *self) {
}
- (void) confirmWithNavigationController:(UINavigationController *)navigation {
+ Queuing_ = false;
+
ProgressController *progress = [[[ProgressController alloc] initWithDatabase:database_ delegate:self] autorelease];
if (navigation != nil) {
@@ -8484,18 +8492,12 @@ static _finline void _setHomePage(Cydia *self) {
@synchronized (self) {
if (clear) {
[database_ clear];
-
- // Stop queuing.
Queuing_ = false;
- [[[self queueBadgeController] tabBarItem] setBadgeValue:nil];
} else {
- // Start queuing.
Queuing_ = true;
- [[[self queueBadgeController] tabBarItem] setBadgeValue:UCLocalize("Q_D")];
}
[self _updateData];
- [queueDelegate_ queueStatusDidChange];
}
}