summaryrefslogtreecommitdiff
path: root/MobileCydia.mm
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2014-11-05 03:22:11 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2014-11-05 03:22:11 -0800
commit907ba49114259e49a89bf54e6e5b137dab12d2af (patch)
tree7996e90c536d95cf8f3d28a52404d7fd92cd3226 /MobileCydia.mm
parent5530e23458e832a9840ce6f0182f1ebdb7c9021b (diff)
Only reload a non-modal view if under a FormSheet.
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r--MobileCydia.mm8
1 files 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 {