summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2014-10-29 20:11:45 -0700
committerJay Freeman (saurik) <saurik@saurik.com>2014-10-29 20:11:45 -0700
commit888667d540945078e5c1638c157057ed0154acb5 (patch)
tree919bb425bfa6189fc6acfdf805e61589d7b63092
parentc158ffc8cc43ecf472f4aea9cc3d041da8349793 (diff)
Unify intervals for foregrounding with launching.
-rw-r--r--MobileCydia.mm17
1 files changed, 10 insertions, 7 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index 4e62734..68bd2b2 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -9731,15 +9731,18 @@ _end
return;
NSTimeInterval interval([closed timeIntervalSinceNow]);
- // XXX: Is 10 minutes the optimal time here?
- if (interval > -(10*60))
- return;
- if (!IsReachable("cydia.saurik.com"))
- return;
+ if (interval <= -(30)) {
+ [tabbar_ setSelectedIndex:0];
+ [[[tabbar_ viewControllers] objectAtIndex:0] popToRootViewControllerAnimated:NO];
+ }
- [tabbar_ beginUpdate];
- [appcache_ reloadURLWithCache:YES];
+ if (interval <= -(15)) {
+ if (IsReachable("cydia.saurik.com")) {
+ [tabbar_ beginUpdate];
+ [appcache_ reloadURLWithCache:YES];
+ }
+ }
}
- (void) setConfigurationData:(NSString *)data {