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,
NSUInteger currentPresetIndex = 0;
if (currentPreset && [currentPreset length] > 0) {
currentPresetIndex = [presets indexOfObjectPassingTest:^(id obj, NSUInteger idx, BOOL *stop) {
return [obj isEqualToString:currentPreset];
}];
currentPresetIndex = [presets indexOfObject:currentPreset];
if (currentPresetIndex == NSNotFound)
currentPresetIndex = [presets count] - 1;
......@@ -662,7 +660,6 @@ static bool GetEqualizerStatus(intf_thread_t *p_custom_intf,
// profile settings
} else {
if (value != NSOKButton) {
[o_profile_pop selectItemAtIndex:[defaults integerForKey:@"AudioEffectSelectedProfile"]];
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