summaryrefslogtreecommitdiff
path: root/MobileCydia.mm
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2011-03-07 23:56:34 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2011-03-08 01:51:00 -0800
commit7c21878133d774334c4c378e29688bc3b19ecbad (patch)
tree96e91b374bc6b92f02081b7587fc2c0f3ec3bc1f /MobileCydia.mm
parent22485d93d47fb92ef04faca680a1f50e7df41edf (diff)
Prefer manual cydia.unload() to automatic modality.
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r--MobileCydia.mm6
1 files changed, 6 insertions, 0 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index 61ffac3..e5c517e 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -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];
}