From: Dustin L. Howett Date: Mon, 3 May 2010 06:50:58 +0000 (+0000) Subject: 'Cancel' now works in-place on not-iPad as well, instead of popping the current list. X-Git-Tag: v0.9.3900~21 X-Git-Url: https://git.saurik.com/winterboard.git/commitdiff_plain/838dbf4cf24835d3ccd76954cbfdb2782ec828bb 'Cancel' now works in-place on not-iPad as well, instead of popping the current list. --- diff --git a/Settings.mm b/Settings.mm index edc0d3f..6c4cd01 100644 --- a/Settings.mm +++ b/Settings.mm @@ -456,6 +456,8 @@ static NSString *_plist; if (![[PSViewController class] instancesRespondToSelector:@selector(showLeftButton:withStyle:rightButton:withStyle:)]) { self.navigationItem.leftBarButtonItem = nil; self.navigationItem.rightBarButtonItem = nil; + } else { + [self showLeftButton:nil withStyle:0 rightButton:nil withStyle:0]; } settingsChanged = NO; } @@ -466,8 +468,10 @@ static NSString *_plist; return; } - if (buttonIndex == 0) + if (buttonIndex == 0) { [self cancelChanges]; + return; + } [self suspend]; [self.rootController popController];