mirror of
https://github.com/videolan/vlc.git
synced 2024-12-02 22:33:27 +08:00
macosx: audio effects: simplification
This commit is contained in:
parent
a9b069e8cd
commit
24b9a2155f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user