diff --git a/Source/Processors/RecordNode/RecordNode.cpp b/Source/Processors/RecordNode/RecordNode.cpp index f319f08c6..f475e43de 100755 --- a/Source/Processors/RecordNode/RecordNode.cpp +++ b/Source/Processors/RecordNode/RecordNode.cpp @@ -996,7 +996,11 @@ void RecordNode::clearRecordEngines() void RecordNode::saveCustomParametersToXml(XmlElement* xml) { - + if (!headlessMode) + { + RecordNodeEditor* recordNodeEditor = (RecordNodeEditor*) getEditor(); + xml->setAttribute("fifoMonitorsVisible", recordNodeEditor->fifoDrawerButton->getToggleState()); + } /* xml->setAttribute ("path", dataDirectory.getFullPathName()); xml->setAttribute("engine", recordEngine->getEngineId()); @@ -1065,7 +1069,15 @@ void RecordNode::saveCustomParametersToXml(XmlElement* xml) void RecordNode::loadCustomParametersFromXml(XmlElement* xml) { - + if (xml->hasAttribute("fifoMonitorsVisible")) + { + if (!headlessMode) + { + RecordNodeEditor* recordNodeEditor = (RecordNodeEditor*)getEditor(); + if (!xml->getBoolAttribute("fifoMonitorsVisible")) + recordNodeEditor->fifoDrawerButton->triggerClick(); + } + } /* String savedPath = xml->getStringAttribute("path"); diff --git a/Source/Processors/RecordNode/RecordNodeEditor.cpp b/Source/Processors/RecordNode/RecordNodeEditor.cpp index c6d96bc19..34117d102 100644 --- a/Source/Processors/RecordNode/RecordNodeEditor.cpp +++ b/Source/Processors/RecordNode/RecordNodeEditor.cpp @@ -636,11 +636,13 @@ void RecordNodeEditor::updateFifoMonitors() Parameter* channels = recordNode->getDataStream(streamId)->getParameter("channels"); recordNode->getDataStream(streamId)->setColor("channels", getLookAndFeel().findColour(ProcessorColor::IDs::RECORD_COLOR)); addCustomParameterEditor(new RecordChannelsParameterEditor(recordNode, channels), 18 + streamCount * 20, 32); + parameterEditors.getLast()->setVisible(!getCollapsedState()); streamMonitors.push_back(parameterEditors.getLast()); Parameter* sync = recordNode->getDataStream(streamId)->getParameter("sync_line"); recordNode->getDataStream(streamId)->setColor("sync_line", getLookAndFeel().findColour(ProcessorColor::IDs::SYNC_COLOR)); addCustomParameterEditor(new SyncChannelsParameterEditor(recordNode, sync), 18 + streamCount * 20, 110); + parameterEditors.getLast()->setVisible(!getCollapsedState()); syncMonitors.push_back(parameterEditors.getLast()); streamCount++;