From: Jay Freeman (saurik) Date: Wed, 1 Dec 2010 09:00:37 +0000 (-0800) Subject: Make the Q'd UI actually respond to queue changes. X-Git-Tag: v1.1.0%b1~459 X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/f6371a338e1705943caf5e91f967ad44d0ab3646 Make the Q'd UI actually respond to queue changes. --- diff --git a/MobileCydia.mm b/MobileCydia.mm index d6adebab..76dd2632 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]; } }