Correctly notify host of parameter changes when loading a project

pull/207/head
James Ball 2024-01-01 13:08:21 +00:00 zatwierdzone przez James H Ball
rodzic 6884595f39
commit 10fecca39e
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -111,7 +111,7 @@ public:
// opt to not change any values if not found
void load(juce::XmlElement* xml) {
if (xml->hasAttribute("value")) {
value = xml->getDoubleAttribute("value");
setUnnormalisedValueNotifyingHost(xml->getDoubleAttribute("value"));
}
if (xml->hasAttribute("min")) {
min = xml->getDoubleAttribute("min");
@ -237,7 +237,7 @@ public:
// opt to not change any values if not found
void load(juce::XmlElement* xml) {
if (xml->hasAttribute("value")) {
value = xml->getIntAttribute("value");
setUnnormalisedValueNotifyingHost(xml->getIntAttribute("value"));
}
if (xml->hasAttribute("min")) {
min = xml->getIntAttribute("min");