From 46c46f4fe6dd945ea8d0040c9833ecd3af572f87 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Thu, 4 Nov 2010 05:53:54 -0700 Subject: You can't go doing awesome UIKit stuff from the JavaScript thread. --- MobileCydia.mm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; } -- cgit v1.2.3