mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Projucer: Fixed a bug when merging the old plug-in format settings if the current value is empty
This commit is contained in:
parent
312afa0ac0
commit
af041a02d7
1 changed files with 10 additions and 3 deletions
|
|
@ -359,10 +359,17 @@ void Project::coalescePluginFormatValues()
|
|||
|
||||
if (formatsToBuild.size() > 0)
|
||||
{
|
||||
auto formatVar = pluginFormatsValue.get();
|
||||
if (pluginFormatsValue.isUsingDefault())
|
||||
{
|
||||
pluginFormatsValue = formatsToBuild;
|
||||
}
|
||||
else
|
||||
{
|
||||
auto formatVar = pluginFormatsValue.get();
|
||||
|
||||
if (auto* arr = formatVar.getArray())
|
||||
arr->addArray (formatsToBuild);
|
||||
if (auto* arr = formatVar.getArray())
|
||||
arr->addArray (formatsToBuild);
|
||||
}
|
||||
|
||||
shouldWriteLegacyPluginFormatSettings = true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue