render pills. use cheat to notify that tree of presets/banks has changed.

This commit is contained in:
Alex Birch
2019-07-14 19:31:05 +01:00
parent 11d7296813
commit 99bb294ece
7 changed files with 78 additions and 22 deletions

View File

@ -379,6 +379,8 @@ void FluidSynthModel::loadFont(const String &absPath) {
// valueTreeState.state.getChildWithName("presets") = presets;
valueTreeState.state.getChildWithName("banks").copyPropertiesAndChildrenFrom(banks, nullptr);
valueTreeState.state.getChildWithName("presets").copyPropertiesAndChildrenFrom(presets, nullptr);
valueTreeState.state.getChildWithName("banks").sendPropertyChangeMessage("synthetic");
valueTreeState.state.getChildWithName("presets").sendPropertyChangeMessage("synthetic");
#if JUCE_DEBUG
unique_ptr<XmlElement> xml{valueTreeState.state.createXml()};