From: Jay Freeman (saurik) Date: Thu, 4 Nov 2010 12:53:54 +0000 (-0700) Subject: You can't go doing awesome UIKit stuff from the JavaScript thread. X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/fa2cd4b34c9a59b98e6e696b4f069f77bd993689?ds=inline You can't go doing awesome UIKit stuff from the JavaScript thread. --- diff --git a/MobileCydia.mm b/MobileCydia.mm index 1772f17b..bccf5b28 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; }