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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user