1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-08-01 16:39:30 +02:00

Bug1718: AU effect presets import dialog should find user presets too

This commit is contained in:
Paul Licameli 2017-09-20 14:43:35 -04:00
parent 02403c1237
commit 7b70aa08af

View File

@ -697,7 +697,11 @@ void AudioUnitEffectImportDialog::PopulateOrExchange(ShuttleGui & S)
// Get all presets in the local domain for this effect
wxDir::GetAllFiles(fn.GetFullPath(), &presets, wxT("*.aupreset"));
fn.PrependDir(wxT("~"));
path.Printf(wxT("%s/%s/%s"),
PRESET_USER_PATH,
mEffect->mVendor.c_str(),
mEffect->mName.c_str());
fn = path;
fn.Normalize();
// Get all presets in the user domain for this effect