diff --git a/Source/PluginProcessor.cpp b/Source/PluginProcessor.cpp index c2db5af..fc9dc84 100644 --- a/Source/PluginProcessor.cpp +++ b/Source/PluginProcessor.cpp @@ -649,6 +649,7 @@ void OscirenderAudioProcessor::setStateInformation(const void* data, int sizeInB } changeCurrentFile(xml->getIntAttribute("currentFile", -1)); broadcaster.sendChangeMessage(); + prevMidiEnabled = !midiEnabled->getBoolValue(); } } diff --git a/Source/PluginProcessor.h b/Source/PluginProcessor.h index d3cf572..d5f0762 100644 --- a/Source/PluginProcessor.h +++ b/Source/PluginProcessor.h @@ -62,7 +62,6 @@ public: std::shared_ptr consumerRegister(std::vector& buffer); void consumerStop(std::shared_ptr consumer); void consumerRead(std::shared_ptr consumer); - void setMidiEnabled(bool enabled); int VERSION_HINT = 1;