]> git.saurik.com Git - cydia.git/commitdiff
Forgot to fully test ChangesView for upgrades :(.
authorJay Freeman (saurik) <saurik@saurk.com>
Sun, 3 Feb 2008 07:25:47 +0000 (07:25 +0000)
committerJay Freeman (saurik) <saurik@saurk.com>
Sun, 3 Feb 2008 07:25:47 +0000 (07:25 +0000)
Cydia.mm

index 470f276b9b4fa87afe5a71e8031b0146805c2d3f..d552e220993a8325ce484d97bae36f5c10727916 100644 (file)
--- a/Cydia.mm
+++ b/Cydia.mm
@@ -2560,8 +2560,17 @@ NSString *Scour(const char *field, const char *begin, const char *end) {
 }
 
 - (void) navigationBar:(UINavigationBar *)navbar buttonClicked:(int)button {
-    if (button == 1)
-        [delegate_ upgrade];
+    switch (button) {
+        case 0:
+            [[view_ package] install];
+            [delegate_ resolve];
+            [delegate_ perform];
+        break;
+
+        case 1:
+            [delegate_ upgrade];
+        break;
+    }
 }
 
 - (void) packageTable:(id)table packageSelected:(Package *)package {