Fix loading presets if preset name doesn't match filename

This commit is contained in:
Roland Rabien 2023-09-25 17:55:04 -07:00
commit e698e29a59
2 changed files with 2 additions and 2 deletions

View file

@ -407,7 +407,7 @@ void extractWavetables()
for (auto f : src.findChildFiles (juce::File::findFiles, false, "*.xml"))
{
auto presetreset = juce::ValueTree::fromXml (f.loadFileAsString());
auto preset = juce::ValueTree::fromXml (f.loadFileAsString());
auto state = preset.getChildWithName ("state");
auto name1 = state.getProperty ("wt1");