1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-16 09:31:14 +01:00

Comments which IdentInterface functions return persistent values

This commit is contained in:
Paul Licameli
2018-02-04 16:25:08 -05:00
parent 575070e9ae
commit 942175f27b
5 changed files with 23 additions and 1 deletions

View File

@@ -2616,6 +2616,8 @@ PluginID PluginManager::GetID(ImporterInterface *importer)
importer->GetPath());
}
// This string persists in configuration files
// So config compatibility will break if it is changed across Audacity versions
wxString PluginManager::GetPluginTypeString(PluginType type)
{
wxString str;
@@ -2888,6 +2890,11 @@ bool PluginManager::SetConfig(const wxString & key, const double & value)
/* Return value is a key for lookup in a config file */
wxString PluginManager::SettingsPath(const PluginID & ID, bool shared)
{
// All the strings reported by PluginDescriptor and used in this function
// persist in the plugin settings configuration file, so they should not
// be changed across Audacity versions, or else compatibility of the
// configuration files will break.
if (mPlugins.find(ID) == mPlugins.end())
{
return wxEmptyString;