From: Jay Freeman (saurik) Date: Mon, 28 Feb 2011 13:28:01 +0000 (-0800) Subject: Consistently use -[Cydia showSettings]. X-Git-Tag: v1.1.0%b1~132 X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/a54fed5bf5841570a19404451fb18e7c69ea532f?ds=sidebyside Consistently use -[Cydia showSettings]. --- diff --git a/MobileCydia.mm b/MobileCydia.mm index 64c388c9..f5ced7bf 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -9397,11 +9397,7 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { } - (void) showSettings { - SettingsController *role = [[[SettingsController alloc] initWithDatabase:database_ delegate:self] autorelease]; - CYNavigationController *nav = [[[CYNavigationController alloc] initWithRootViewController:role] autorelease]; - if (IsWildcat_) - [nav setModalPresentationStyle:UIModalPresentationFormSheet]; - [tabbar_ presentModalViewController:nav animated:YES]; + [self presentModalViewController:[[[SettingsController alloc] initWithDatabase:database_ delegate:self] autorelease] force:NO]; } - (void) retainNetworkActivityIndicator { @@ -9881,7 +9877,7 @@ _trace(); _trace(); if (Role_ == nil) { [window_ setUserInteractionEnabled:YES]; - [self presentModalViewController:[[[SettingsController alloc] initWithDatabase:database_ delegate:self] autorelease] force:NO]; + [self showSettings]; return; } else { if ([emulated_ modalViewController] != nil)