summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2010-11-04 05:53:54 -0700
committerJay Freeman (saurik) <saurik@saurik.com>2010-11-04 13:31:24 -0700
commit46c46f4fe6dd945ea8d0040c9833ecd3af572f87 (patch)
treeb33bb749f84b7dc3a6150172da919dd06aa992cb
parent2634b249a36b79a5c11dcdda3edc7161e9f92c2b (diff)
You can't go doing awesome UIKit stuff from the JavaScript thread.
-rw-r--r--MobileCydia.mm5
1 files changed, 4 insertions, 1 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index 1772f17..bccf5b2 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -3997,10 +3997,13 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
}
}
-- (id) invokeDefaultMethodWithArguments:(NSArray *)args {
+- (void) _doContinue {
[self dismissModalViewControllerAnimated:YES];
[delegate_ cancelAndClear:NO];
+}
+- (id) invokeDefaultMethodWithArguments:(NSArray *)args {
+ [self performSelectorOnMainThread:@selector(_doContinue) withObject:nil waitUntilDone:NO];
return nil;
}