From: Jay Freeman (saurik) Date: Fri, 25 Mar 2011 10:20:34 +0000 (-0700) Subject: Bring up _loaded prompt during cancelled update. X-Git-Tag: v1.1.0%rc1^0 X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/383a58aca9ce0b1c36ab6439cde44c3598d19f65 Bring up _loaded prompt during cancelled update. --- diff --git a/MobileCydia.mm b/MobileCydia.mm index c4108aad..48aaef99 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];