]> git.saurik.com Git - cydia.git/commitdiff
Unify intervals for foregrounding with launching.
authorJay Freeman (saurik) <saurik@saurik.com>
Thu, 30 Oct 2014 03:11:45 +0000 (20:11 -0700)
committerJay Freeman (saurik) <saurik@saurik.com>
Thu, 30 Oct 2014 03:11:45 +0000 (20:11 -0700)
MobileCydia.mm

index 4e6273432bd1541ec578de1006fc3ae9006ed4e8..68bd2b2875d6b05ec2e7c38cf7bcca5192c77d74 100644 (file)
@@ -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 {