]> git.saurik.com Git - cydia.git/commitdiff
White background the first time Changes is loaded
authorRyan Petrich <rpetrich@gmail.com>
Thu, 23 Sep 2010 07:56:48 +0000 (01:56 -0600)
committerJay Freeman (saurik) <saurik@saurik.com>
Thu, 30 Sep 2010 10:42:38 +0000 (10:42 +0000)
Cydia.mm

index c9254f4d91e67aee78d30a608f15144cd6985028..38ba04ebceaa468d74b076adf4f51f907411b7fe 100644 (file)
--- a/Cydia.mm
+++ b/Cydia.mm
@@ -6934,6 +6934,7 @@ freeing the view controllers on tab change */
     NSMutableArray *sections_;
     UITableView *list_;
     unsigned upgrades_;
+    BOOL hasSentFirstLoad_;
 }
 
 - (id) initWithDatabase:(Database *)database delegate:(id)delegate;
@@ -6955,7 +6956,12 @@ freeing the view controllers on tab change */
 
 - (void) viewDidAppear:(BOOL)animated {
     [super viewDidAppear:animated];
-    [list_ deselectRowAtIndexPath:[list_ indexPathForSelectedRow] animated:animated];
+    if (!hasSentFirstLoad_) {
+        hasSentFirstLoad_ = YES;
+        [self performSelector:@selector(reloadData) withObject:nil afterDelay:0.0];
+    } else {
+        [list_ deselectRowAtIndexPath:[list_ indexPathForSelectedRow] animated:animated];
+    }
 }
 
 - (NSInteger) numberOfSectionsInTableView:(UITableView *)list {
@@ -7030,7 +7036,6 @@ freeing the view controllers on tab change */
         [list_ setDelegate:self];
 
         delegate_ = delegate;
-        [self reloadData];
     } return self;
 }