mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Projucer: Fixed a bug where AAX and RTAS categories were not being recalled correctly
This commit is contained in:
parent
774c1f5bed
commit
2204c6b263
1 changed files with 16 additions and 6 deletions
|
|
@ -61,10 +61,6 @@ Project::Project (const File& f)
|
|||
initialiseMainGroup();
|
||||
initialiseAudioPluginValues();
|
||||
|
||||
coalescePluginFormatValues();
|
||||
coalescePluginCharacteristicsValues();
|
||||
updatePluginCategories();
|
||||
|
||||
parsedPreprocessorDefs = parsePreprocessorDefs (preprocessorDefsValue.get());
|
||||
|
||||
getModules().sortAlphabetically();
|
||||
|
|
@ -380,15 +376,23 @@ void Project::updatePluginCategories()
|
|||
{
|
||||
auto aaxCategory = projectRoot.getProperty (Ids::pluginAAXCategory, {}).toString();
|
||||
|
||||
if (aaxCategory.isNotEmpty())
|
||||
if (getAllAAXCategoryVars().contains (aaxCategory))
|
||||
pluginAAXCategoryValue = aaxCategory;
|
||||
else if (getAllAAXCategoryStrings().contains (aaxCategory))
|
||||
pluginAAXCategoryValue = Array<var> (getAllAAXCategoryVars()[getAllAAXCategoryStrings().indexOf (aaxCategory)]);
|
||||
else
|
||||
pluginAAXCategoryValue.resetToDefault();
|
||||
}
|
||||
|
||||
{
|
||||
auto rtasCategory = projectRoot.getProperty (Ids::pluginRTASCategory, {}).toString();
|
||||
|
||||
if (rtasCategory.isNotEmpty())
|
||||
if (getAllRTASCategoryVars().contains (rtasCategory))
|
||||
pluginRTASCategoryValue = rtasCategory;
|
||||
else if (getAllRTASCategoryStrings().contains (rtasCategory))
|
||||
pluginRTASCategoryValue = Array<var> (getAllRTASCategoryVars()[getAllRTASCategoryStrings().indexOf (rtasCategory)]);
|
||||
else
|
||||
pluginRTASCategoryValue.resetToDefault();
|
||||
}
|
||||
|
||||
{
|
||||
|
|
@ -396,6 +400,8 @@ void Project::updatePluginCategories()
|
|||
|
||||
if (vstCategory.isNotEmpty() && getAllVSTCategoryStrings().contains (vstCategory))
|
||||
pluginVSTCategoryValue = Array<var> (vstCategory);
|
||||
else
|
||||
pluginVSTCategoryValue.resetToDefault();
|
||||
}
|
||||
|
||||
{
|
||||
|
|
@ -410,6 +416,10 @@ void Project::updatePluginCategories()
|
|||
else if (getAllAUMainTypeStrings().contains (auMainType))
|
||||
pluginAUMainTypeValue = Array<var> (getAllAUMainTypeVars()[getAllAUMainTypeStrings().indexOf (auMainType)]);
|
||||
}
|
||||
else
|
||||
{
|
||||
pluginAUMainTypeValue.resetToDefault();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue