1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-15 00:24:19 +00:00

Projucer: Fixed a bug causing GUI editor code written with older Projucer versions to be overwritten

This commit is contained in:
ed 2020-07-01 09:36:42 +01:00
parent b096c16c04
commit d1bfb83fa4
2 changed files with 9 additions and 2 deletions

View file

@ -52,7 +52,13 @@ public:
static ComponentTypeHandler* getHandlerFor (Component& component);
//==============================================================================
virtual String getXmlTagName() const noexcept { return className.toUpperCase(); }
virtual String getXmlTagName() const noexcept
{
if (className.startsWith ("juce::"))
return className.substring (6).toUpperCase();
return className.toUpperCase();
}
static ComponentTypeHandler* getHandlerForXmlTag (const String& tagName);

View file

@ -311,7 +311,8 @@ void JucerDocument::setOptionalMethodEnabled (const String& methodSignature, con
bool JucerDocument::isOptionalMethodEnabled (const String& sig) const noexcept
{
return activeExtraMethods.contains (sig);
return activeExtraMethods.contains (sig)
|| activeExtraMethods.contains (sig.replace ("juce::", {}));
}
void JucerDocument::addExtraClassProperties (PropertyPanel&)