From 13519185cf1d76c2d31f81142b15fee6cf9cf0f5 Mon Sep 17 00:00:00 2001 From: Mikkel Krautz Date: Wed, 2 Feb 2011 02:22:29 +0100 Subject: Get rid of 'Duck Audio'. It's complicated to get right, so remove the option until we've finished some of the more important parts of the app. --- Source/Classes/PreferencesViewController.m | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/Source/Classes/PreferencesViewController.m b/Source/Classes/PreferencesViewController.m index f3036ec..33defa8 100644 --- a/Source/Classes/PreferencesViewController.m +++ b/Source/Classes/PreferencesViewController.m @@ -84,7 +84,7 @@ - (NSInteger) tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { // Audio if (section == 0) { - return 3; + return 2; // Network } else if (section == 1) { return 1; @@ -122,19 +122,8 @@ [volSlider release]; } - // Ducking - if ([indexPath row] == 1) { - UISwitch *duckSwitch = [[UISwitch alloc] init]; - [duckSwitch setOn:[[NSUserDefaults standardUserDefaults] boolForKey:@"AudioDucking"]]; - [[cell textLabel] setText:@"Duck Audio"]; - [cell setAccessoryView:duckSwitch]; - [cell setSelectionStyle:UITableViewCellSelectionStyleNone]; - [duckSwitch addTarget:self action:@selector(audioDuckingChanged:) forControlEvents:UIControlEventValueChanged]; - [duckSwitch release]; - } - // Advanced Audio - if ([indexPath row] == 2) { + if ([indexPath row] == 1) { [[cell textLabel] setText:@"Advanced Audio"]; [cell setAccessoryType:UITableViewCellAccessoryDisclosureIndicator]; } @@ -243,7 +232,7 @@ [[self tableView] deselectRowAtIndexPath:indexPath animated:YES]; if ([indexPath section] == 0) { // Audio - if ([indexPath row] == 2) { // Advanced Audio + if ([indexPath row] == 1) { // Advanced Audio AdvancedAudioPreferencesViewController *advAudio = [[AdvancedAudioPreferencesViewController alloc] init]; [[self navigationController] pushViewController:advAudio animated:YES]; [advAudio release]; -- cgit v1.2.3