]> git.saurik.com Git - cydia.git/commitdiff
Bring up _loaded prompt during cancelled update. v1.1.0%rc1
authorJay Freeman (saurik) <saurik@saurik.com>
Fri, 25 Mar 2011 10:20:34 +0000 (03:20 -0700)
committerJay Freeman (saurik) <saurik@saurik.com>
Fri, 25 Mar 2011 10:20:34 +0000 (03:20 -0700)
MobileCydia.mm

index c4108aadf7889eccebf0645a2afd04c847a2bcc7..48aaef996aad576e108e040ab564bce1bdf0a6e7 100644 (file)
@@ -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];