From 77a4e323389d974d6a9e214d3b9703f5e067597d Mon Sep 17 00:00:00 2001 From: Ryan Petrich Date: Thu, 23 Sep 2010 01:56:48 -0600 Subject: [PATCH] White background the first time Changes is loaded --- Cydia.mm | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Cydia.mm b/Cydia.mm index c9254f4d..38ba04eb 100644 --- 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; } -- 2.45.2