mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-19 09:01:15 +02:00
Fix factory reloading for external effects based on Peter's feedback.
This commit is contained in:
@@ -561,16 +561,31 @@ bool Effect::SaveUserPreset(const wxString & name)
|
||||
|
||||
wxArrayString Effect::GetFactoryPresets()
|
||||
{
|
||||
if (mClient)
|
||||
{
|
||||
return mClient->GetFactoryPresets();
|
||||
}
|
||||
|
||||
return wxArrayString();
|
||||
}
|
||||
|
||||
bool Effect::LoadFactoryPreset(int WXUNUSED(id))
|
||||
bool Effect::LoadFactoryPreset(int id)
|
||||
{
|
||||
if (mClient)
|
||||
{
|
||||
return mClient->LoadFactoryPreset(id);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
bool Effect::LoadFactoryDefaults()
|
||||
{
|
||||
if (mClient)
|
||||
{
|
||||
return mClient->LoadFactoryDefaults();
|
||||
}
|
||||
|
||||
return LoadUserPreset(GetFactoryDefaultsGroup());
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user