]> git.saurik.com Git - cydia.git/commitdiff
Make the Modify animation look slightly less dumb.
authorJay Freeman (saurik) <saurik@saurik.com>
Thu, 30 Oct 2014 12:50:43 +0000 (05:50 -0700)
committerJay Freeman (saurik) <saurik@saurik.com>
Thu, 30 Oct 2014 12:50:43 +0000 (05:50 -0700)
MobileCydia.mm

index af4dfb3d5d999067a2b871f6c5efde051e842708..290cf49c0e688cd0bb4ed2022a77f9014e44be21 100644 (file)
@@ -6299,10 +6299,13 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
 
     if ([context isEqualToString:@"modify"]) {
         if (button != [sheet cancelButtonIndex]) {
-            [self performSelector:@selector(_clickButtonWithName:) withObject:buttons_[button].first afterDelay:0];
+            if (IsWildcat_)
+                [self performSelector:@selector(_clickButtonWithName:) withObject:buttons_[button].first afterDelay:0];
+            else
+                [self _clickButtonWithName:buttons_[button].first];
         }
 
-        [sheet dismissWithClickedButtonIndex:-1 animated:YES];
+        [sheet dismissWithClickedButtonIndex:button animated:YES];
     }
 }