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

@ -1 +1 @@
Subproject commit a1330fdfd42df293cfdb08780faa89aaccb4051a Subproject commit 69cbdc6741e3a9efa1988407a3b4e5dcdf6aa1c4

View file

@ -407,7 +407,7 @@ void extractWavetables()
for (auto f : src.findChildFiles (juce::File::findFiles, false, "*.xml")) 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 state = preset.getChildWithName ("state");
auto name1 = state.getProperty ("wt1"); auto name1 = state.getProperty ("wt1");