1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-15 17:11:20 +01:00

Fix for bug #833

This allows duplicate items in the effects menus and provides a
means to uniquely identify each item.
This commit is contained in:
lllucius
2015-01-19 16:28:48 +00:00
parent e5d2ef6ecd
commit 10f62cdae5
30 changed files with 283 additions and 235 deletions

View File

@@ -153,16 +153,6 @@ EffectType Effect::GetType()
return EffectTypeNone;
}
PluginID Effect::GetID()
{
if (mClient)
{
return mClient->GetID();
}
return wxString::Format(wxT("LEGACY_EFFECT_ID_%d"), GetEffectID());
}
wxString Effect::GetPath()
{
if (mClient)
@@ -513,6 +503,16 @@ bool Effect::RemovePrivateConfig(const wxString & group, const wxString & key)
// Effect implementation
PluginID Effect::GetID()
{
if (mClient)
{
return PluginManager::GetID(mClient);
}
return wxString::Format(wxT("LEGACY_EFFECT_ID_%d"), GetEffectID());
}
bool Effect::Startup(EffectClientInterface *client)
{
// Let destructor know we need to be shutdown