From 383a58aca9ce0b1c36ab6439cde44c3598d19f65 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Fri, 25 Mar 2011 03:20:34 -0700 Subject: Bring up _loaded prompt during cancelled update. --- MobileCydia.mm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'MobileCydia.mm') diff --git a/MobileCydia.mm b/MobileCydia.mm index c4108aa..48aaef9 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -7022,7 +7022,7 @@ static void HomeControllerReachabilityCallback(SCNetworkReachabilityRef reachabi } - (void) cancelUpdate { - [self stopUpdateWithSelector:@selector(updateData)]; + [self stopUpdateWithSelector:@selector(updateDataAndLoad)]; } - (void) cancelPressed { @@ -9493,6 +9493,12 @@ static void HomeControllerReachabilityCallback(SCNetworkReachabilityRef reachabi [self _updateData]; } +- (void) updateDataAndLoad { + [self _updateData]; + if ([database_ progressDelegate] == nil) + [self _loaded]; +} + - (void) update_ { [database_ update]; [self performSelectorOnMainThread:@selector(reloadData) withObject:nil waitUntilDone:YES]; -- cgit v1.2.3