From: Jay Freeman (saurik) Date: Wed, 5 Nov 2014 11:22:11 +0000 (-0800) Subject: Only reload a non-modal view if under a FormSheet. X-Git-Tag: v1.1.16~2 X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/907ba49114259e49a89bf54e6e5b137dab12d2af Only reload a non-modal view if under a FormSheet. --- diff --git a/MobileCydia.mm b/MobileCydia.mm index 7316a245..69084f02 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -7124,9 +7124,11 @@ static void HomeControllerReachabilityCallback(SCNetworkReachabilityRef reachabi // on the iPad, this view controller is ALSO visible. :( if (IsWildcat_) - if (UIViewController *top = [self topViewController]) - if (top != visible) - [top reloadData]; + if (UIViewController *modal = [self modalViewController]) + if ([modal modalPresentationStyle] == UIModalPresentationFormSheet) + if (UIViewController *top = [self topViewController]) + if (top != visible) + [top reloadData]; } - (void) unloadData {