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:
parent
b096c16c04
commit
d1bfb83fa4
2 changed files with 9 additions and 2 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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&)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue