mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-18 00:54:19 +00:00
PluginDescription: Fall back to using deprecatedUID in createIdentifierString() if the new uniqueID is not known
This commit is contained in:
parent
9e31eb1c6a
commit
c229d160f9
1 changed files with 2 additions and 1 deletions
|
|
@ -54,7 +54,8 @@ bool PluginDescription::matchesIdentifierString (const String& identifierString)
|
|||
|
||||
String PluginDescription::createIdentifierString() const
|
||||
{
|
||||
return pluginFormatName + "-" + name + getPluginDescSuffix (*this, uniqueId);
|
||||
const auto idToUse = uniqueId != 0 ? uniqueId : deprecatedUid;
|
||||
return pluginFormatName + "-" + name + getPluginDescSuffix (*this, idToUse);
|
||||
}
|
||||
|
||||
std::unique_ptr<XmlElement> PluginDescription::createXml() const
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue