1
0
Fork 0
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:
reuk 2022-02-14 15:54:22 +00:00
parent 9e31eb1c6a
commit c229d160f9
No known key found for this signature in database
GPG key ID: 9ADCD339CFC98A11

View file

@ -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