mirror of
https://github.com/cookiengineer/audacity
synced 2026-01-12 07:35:51 +01:00
Fix crash when certain effects are open and a new project window is created
This affected VST, LADSPA, LV2, and Audio Unit effects.
This commit is contained in:
@@ -147,6 +147,18 @@ wxString EffectManager::GetEffectDescription(const PluginID & ID)
|
||||
return wxEmptyString;
|
||||
}
|
||||
|
||||
bool EffectManager::IsHidden(const PluginID & ID)
|
||||
{
|
||||
Effect *effect = GetEffect(ID);
|
||||
|
||||
if (effect)
|
||||
{
|
||||
return effect->IsHidden();
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
bool EffectManager::SupportsAutomation(const PluginID & ID)
|
||||
{
|
||||
const PluginDescriptor *plug = PluginManager::Get().GetPlugin(ID);
|
||||
|
||||
@@ -76,6 +76,7 @@ public:
|
||||
wxString GetEffectName(const PluginID & ID);
|
||||
wxString GetEffectIdentifier(const PluginID & ID);
|
||||
wxString GetEffectDescription(const PluginID & ID);
|
||||
bool IsHidden(const PluginID & ID);
|
||||
|
||||
/** Support for batch commands */
|
||||
bool SupportsAutomation(const PluginID & ID);
|
||||
|
||||
Reference in New Issue
Block a user