From: Jay Freeman (saurik) Date: Thu, 30 Oct 2014 12:50:43 +0000 (-0700) Subject: Make the Modify animation look slightly less dumb. X-Git-Tag: v1.1.14~1 X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/60b6595c940625df33137df2003f0f0305f75d59 Make the Modify animation look slightly less dumb. --- diff --git a/MobileCydia.mm b/MobileCydia.mm index af4dfb3d..290cf49c 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]; } }