Commit 24b9a215 authored by David Fuhrmann's avatar David Fuhrmann

macosx: audio effects: simplification

parent a9b069e8
...@@ -452,9 +452,7 @@ static bool GetEqualizerStatus(intf_thread_t *p_custom_intf, ...@@ -452,9 +452,7 @@ static bool GetEqualizerStatus(intf_thread_t *p_custom_intf,
NSUInteger currentPresetIndex = 0; NSUInteger currentPresetIndex = 0;
if (currentPreset && [currentPreset length] > 0) { if (currentPreset && [currentPreset length] > 0) {
currentPresetIndex = [presets indexOfObjectPassingTest:^(id obj, NSUInteger idx, BOOL *stop) { currentPresetIndex = [presets indexOfObject:currentPreset];
return [obj isEqualToString:currentPreset];
}];
if (currentPresetIndex == NSNotFound) if (currentPresetIndex == NSNotFound)
currentPresetIndex = [presets count] - 1; currentPresetIndex = [presets count] - 1;
...@@ -662,7 +660,6 @@ static bool GetEqualizerStatus(intf_thread_t *p_custom_intf, ...@@ -662,7 +660,6 @@ static bool GetEqualizerStatus(intf_thread_t *p_custom_intf,
// profile settings // profile settings
} else { } else {
if (value != NSOKButton) { if (value != NSOKButton) {
[o_profile_pop selectItemAtIndex:[defaults integerForKey:@"AudioEffectSelectedProfile"]]; [o_profile_pop selectItemAtIndex:[defaults integerForKey:@"AudioEffectSelectedProfile"]];
return; return;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment