mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-16 09:31:14 +01:00
Bug 1587 - Mac: Ghost duplicate Nyquist effects after upgrade
Fix removes ghost Nyquist effects from the effects menu and generators from generate menu.
This commit is contained in:
@@ -1697,6 +1697,9 @@ void PluginManager::Initialize()
|
||||
// And finally check for updates
|
||||
#ifndef EXPERIMENTAL_EFFECT_MANAGEMENT
|
||||
CheckForUpdates();
|
||||
#else
|
||||
const bool kFast = true;
|
||||
CheckForUpdates( kFast );
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -2105,7 +2108,10 @@ void PluginManager::SaveGroup(wxFileConfig *pRegistry, PluginType type)
|
||||
return;
|
||||
}
|
||||
|
||||
void PluginManager::CheckForUpdates()
|
||||
// If bFast is true, do not do a full check. Just check the ones
|
||||
// that are quick to check. Currently (Feb 2017) just Nyquist
|
||||
// and built-ins.
|
||||
void PluginManager::CheckForUpdates(bool bFast)
|
||||
{
|
||||
// Get ModuleManager reference
|
||||
ModuleManager & mm = ModuleManager::Get();
|
||||
@@ -2148,9 +2154,13 @@ void PluginManager::CheckForUpdates()
|
||||
continue;
|
||||
}
|
||||
|
||||
if (plugType == PluginTypeModule)
|
||||
if ( (plugType == PluginTypeModule) )
|
||||
{
|
||||
if (!mm.IsProviderValid(plugID, plugPath))
|
||||
if( bFast )
|
||||
{
|
||||
// Skip modules, when doing a fast refresh/check.
|
||||
}
|
||||
else if (!mm.IsProviderValid(plugID, plugPath))
|
||||
{
|
||||
plug.SetEnabled(false);
|
||||
plug.SetValid(false);
|
||||
@@ -2178,7 +2188,7 @@ void PluginManager::CheckForUpdates()
|
||||
}
|
||||
else if (plugType != PluginTypeNone && plugType != PluginTypeStub)
|
||||
{
|
||||
plug.SetValid(mm.IsPluginValid(plug.GetProviderID(), plugPath));
|
||||
plug.SetValid(mm.IsPluginValid(plug.GetProviderID(), plugPath, bFast));
|
||||
if (!plug.IsValid())
|
||||
{
|
||||
plug.SetEnabled(false);
|
||||
|
||||
Reference in New Issue
Block a user