Equalizer: Load presets when first used by genre tracking if dialog hasn't been opened yet
parent
c56852437d
commit
4aa6ef0b14
|
@ -195,6 +195,8 @@ static void loadPresets()
|
||||||
void equalizerApplyGenre(NSString *genre) {
|
void equalizerApplyGenre(NSString *genre) {
|
||||||
equalizerGenre = genre;
|
equalizerGenre = genre;
|
||||||
if ([[[NSUserDefaultsController sharedUserDefaultsController] defaults] boolForKey:@"GraphicEQtrackgenre"]) {
|
if ([[[NSUserDefaultsController sharedUserDefaultsController] defaults] boolForKey:@"GraphicEQtrackgenre"]) {
|
||||||
|
loadPresets();
|
||||||
|
|
||||||
NSDictionary * preset = [equalizer_presets_by_name objectForKey:genre];
|
NSDictionary * preset = [equalizer_presets_by_name objectForKey:genre];
|
||||||
if (!preset) {
|
if (!preset) {
|
||||||
// Find a match
|
// Find a match
|
||||||
|
|
Loading…
Reference in New Issue