From: Jay Freeman (saurik) Date: Mon, 28 Feb 2011 18:38:38 +0000 (-0800) Subject: Unload data when presenting modal page. X-Git-Tag: v1.1.0%b1~122 X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/302bf91cd8a4388360bd4ccb3464e995e90c3235 Unload data when presenting modal page. --- diff --git a/MobileCydia.mm b/MobileCydia.mm index 2b6c6327..0648e4c1 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -9086,10 +9086,14 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { return [controllers objectAtIndex:3]; } +- (void) unloadData { + [tabbar_ unloadData]; +} + - (void) _updateData { [self _saveConfig]; - [tabbar_ unloadData]; + [self unloadData]; UINavigationController *navigation = [self queueNavigationController]; diff --git a/UICaboodle/BrowserView.h b/UICaboodle/BrowserView.h index 03355c2d..636405c8 100644 --- a/UICaboodle/BrowserView.h +++ b/UICaboodle/BrowserView.h @@ -56,6 +56,7 @@ - (void) retainNetworkActivityIndicator; - (void) releaseNetworkActivityIndicator; - (CYViewController *) pageForURL:(NSURL *)url forExternal:(BOOL)external; +- (void) unloadData; @end @interface BrowserController : CYViewController < diff --git a/UICaboodle/BrowserView.mm b/UICaboodle/BrowserView.mm index 201e8541..f03c9395 100644 --- a/UICaboodle/BrowserView.mm +++ b/UICaboodle/BrowserView.mm @@ -707,6 +707,8 @@ static void $UIWebViewWebViewDelegate$webViewClose$(UIWebViewWebViewDelegate *se ] autorelease]]; [[self navigationController] presentModalViewController:navigation animated:YES]; + + [delegate_ unloadData]; } }