summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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];
}
}