1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-04 01:29:43 +02:00

Bug 1914 - Enh: Clean install needed to update effect/generate/analyze/tools menu for changed plug ins

This code now does the clean out of pluginregistry.cfg.
Nicer for the user would be to preserve the list of hand-added plug-ins.  But a clean restart is easier.
This commit is contained in:
James Crook 2018-08-03 19:05:52 +01:00
parent 4318cb6780
commit 233b1677dd
2 changed files with 12 additions and 3 deletions

View File

@ -1330,7 +1330,7 @@ void PluginDescriptor::SetImporterExtensions(const wxArrayString & extensions)
///////////////////////////////////////////////////////////////////////////////
#define REGVERKEY wxString(wxT("/pluginregistryversion"))
#define REGVERCUR wxString(wxT("1.0"))
#define REGVERCUR wxString(wxT("1.1"))
#define REGROOT wxString(wxT("/pluginregistry/"))
#define SETVERKEY wxString(wxT("/pluginsettingsversion"))
@ -1898,7 +1898,16 @@ void PluginManager::Load()
{
// This is where we'd put in conversion code when the
// registry version changes.
//
// For 2.3.0 the plugins we distribute have moved around.
// So we upped the registry version number to 1.1.
// Rather than elaborate code for upgraders, we start from scratch.
if (regver <= "1.0")
{
registry.DeleteAll();
return;
}
// Should also check for a registry file that is newer than
// what we can understand.
}

View File

@ -216,7 +216,7 @@ wxArrayString NyquistEffectsModule::FindPluginPaths(PluginManagerInterface & pm)
wxArrayString files;
// Add the Nyquist prompt effect and tool.
files.Add(NYQUIST_EFFECTS_PROMPT_ID);
//files.Add(NYQUIST_EFFECTS_PROMPT_ID);
files.Add(NYQUIST_TOOLS_PROMPT_ID);
// Load .ny plug-ins