]> git.saurik.com Git - cydia.git/commitdiff
Count essential installations towards Changes badge. v1.1.0%rc2
authorJay Freeman (saurik) <saurik@saurik.com>
Fri, 25 Mar 2011 16:39:23 +0000 (09:39 -0700)
committerJay Freeman (saurik) <saurik@saurik.com>
Fri, 25 Mar 2011 16:39:23 +0000 (09:39 -0700)
MobileCydia.mm

index 6d8c6f8e9f4775a11e97ec888f3cbac662114743..0a86a2bf203458fe691ed5cd95c52ed2c99ffb04 100644 (file)
@@ -9470,8 +9470,8 @@ static void HomeControllerReachabilityCallback(SCNetworkReachabilityRef reachabi
     for (Package *package in packages) {
         if ([package half])
             [broken_ addObject:package];
-        if ([package upgradableAndEssential:NO] && ![package ignored]) {
-            if ([package essential])
+        if ([package upgradableAndEssential:YES] && ![package ignored]) {
+            if ([package essential] && [package installed] != nil)
                 [essential_ addObject:package];
             ++changes;
         }