Equalizer: Load presets when first used by genre tracking if dialog hasn't been opened yet

CQTexperiment
Christopher Snowhill 2022-01-17 21:16:39 -08:00
parent c56852437d
commit 4aa6ef0b14
1 changed files with 2 additions and 0 deletions

View File

@ -195,6 +195,8 @@ static void loadPresets()
void equalizerApplyGenre(NSString *genre) {
equalizerGenre = genre;
if ([[[NSUserDefaultsController sharedUserDefaultsController] defaults] boolForKey:@"GraphicEQtrackgenre"]) {
loadPresets();
NSDictionary * preset = [equalizer_presets_by_name objectForKey:genre];
if (!preset) {
// Find a match