diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2011-03-25 03:20:34 -0700 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2011-03-25 03:20:34 -0700 |
commit | 383a58aca9ce0b1c36ab6439cde44c3598d19f65 (patch) | |
tree | 5bb4e808ed52df3e9a1d6d0ff3ecd74bd4ef7c0d | |
parent | fdf823183c7d400ecce548a74ca5f33e59b1bc6a (diff) |
Bring up _loaded prompt during cancelled update.v1.1.0%rc1
-rw-r--r-- | MobileCydia.mm | 8 |
1 files changed, 7 insertions, 1 deletions
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]; |