]> git.saurik.com Git - cydia.git/commitdiff
Only reload a non-modal view if under a FormSheet.
authorJay Freeman (saurik) <saurik@saurik.com>
Wed, 5 Nov 2014 11:22:11 +0000 (03:22 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Wed, 5 Nov 2014 11:22:11 +0000 (03:22 -0800)
MobileCydia.mm

index 7316a2457b5167f6399717541598218be330808a..69084f021b99f15a4492395f533e953463c85c13 100644 (file)
@@ -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 {