]> git.saurik.com Git - cydia.git/blobdiff - MobileCydia.mm
Add cydia.popViewController(animated).
[cydia.git] / MobileCydia.mm
index 49218cbc5fbfed7a055830360f81d61239930ca8..ad48ee54f5e82b8d04b8fea3d3417aa50a4afc4f 100644 (file)
@@ -4234,6 +4234,8 @@ static NSMutableSet *Diversions_;
         return @"installPackages";
     else if (selector == @selector(localizedStringForKey:value:table:))
         return @"localize";
+    else if (selector == @selector(popViewController:))
+        return @"popViewController";
     else if (selector == @selector(refreshSources))
         return @"refreshSources";
     else if (selector == @selector(removeButton))
@@ -4320,6 +4322,12 @@ static NSMutableSet *Diversions_;
     [delegate_ performSelectorOnMainThread:@selector(addCydiaHost:) withObject:host waitUntilDone:NO];
 }
 
+- (void) popViewController:(NSNumber *)value {
+    if (value == (id) [WebUndefined undefined])
+        value = [NSNumber numberWithBool:YES];
+    [indirect_ performSelectorOnMainThread:@selector(popViewControllerWithNumber:) withObject:value waitUntilDone:NO];
+}
+
 - (void) addTrivialSource:(NSString *)href {
     [delegate_ performSelectorOnMainThread:@selector(addTrivialSource:) withObject:href waitUntilDone:NO];
 }