From 907ba49114259e49a89bf54e6e5b137dab12d2af Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Wed, 5 Nov 2014 03:22:11 -0800 Subject: Only reload a non-modal view if under a FormSheet. --- MobileCydia.mm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/MobileCydia.mm b/MobileCydia.mm index 7316a24..69084f0 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 { -- cgit v1.2.3