diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2014-10-30 05:50:43 -0700 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2014-10-30 05:50:43 -0700 |
commit | 60b6595c940625df33137df2003f0f0305f75d59 (patch) | |
tree | 6217c3f30d7545a084e14c1d308f608a06100c17 | |
parent | 1002f4d9844dde87e9e14c0991699ea2a57e412e (diff) |
Make the Modify animation look slightly less dumb.
-rw-r--r-- | MobileCydia.mm | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm index af4dfb3..290cf49 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -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]; } } |