]> git.saurik.com Git - cydia.git/commitdiff
Prefer manual cydia.unload() to automatic modality.
authorJay Freeman (saurik) <saurik@saurik.com>
Tue, 8 Mar 2011 07:56:34 +0000 (23:56 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Tue, 8 Mar 2011 09:51:00 +0000 (01:51 -0800)
CyteKit/WebViewController.mm
MobileCydia.mm

index 61786da995512f1d97c1f2c47c144c65f0a7f91c..c2f280cddef577c9dd948f4f7207d61655788157 100644 (file)
@@ -380,8 +380,6 @@ float CYScrollViewDecelerationRateNormal;
             action:@selector(close)
         ] autorelease]];
 
-        [delegate_ unloadData];
-
         [[self navigationController] presentModalViewController:navigation animated:YES];
     }
 }
index 61ffac3f5d8e097b6d89990982b18ce1a1336300..e5c517e1fcacd477ae5046b43407db7b3667ef17 100644 (file)
@@ -3904,6 +3904,8 @@ static _H<NSMutableSet> Diversions_;
         return @"statfs";
     else if (selector == @selector(supports:))
         return @"supports";
+    else if (selector == @selector(unload))
+        return @"unload";
     else
         return nil;
 }
@@ -3916,6 +3918,10 @@ static _H<NSMutableSet> Diversions_;
     return [feature isEqualToString:@"window.open"];
 }
 
+- (void) unload {
+    [delegate_ performSelectorOnMainThread:@selector(unloadData) withObject:nil waitUntilDone:NO];
+}
+
 - (void) addInternalRedirect:(NSString *)from :(NSString *)to {
     [CydiaWebViewController performSelectorOnMainThread:@selector(addDiversion:) withObject:[[[Diversion alloc] initWithFrom:from to:to] autorelease] waitUntilDone:NO];
 }