Skip to content
Snippets Groups Projects
Commit 710c1352 authored by Aaron Cuevas Lopez's avatar Aaron Cuevas Lopez
Browse files

Save record path on settings file

parent fe33c3e1
Branches
Tags
No related merge requests found
......@@ -983,6 +983,7 @@ void ControlPanel::saveStateToXml(XmlElement* xml)
XmlElement* controlPanelState = xml->createNewChildElement("CONTROLPANEL");
controlPanelState->setAttribute("isOpen",open);
controlPanelState->setAttribute("recordPath", filenameComponent->getCurrentFile().getFullPathName());
controlPanelState->setAttribute("prependText",prependText->getText());
controlPanelState->setAttribute("appendText",appendText->getText());
controlPanelState->setAttribute("recordEngine",recordSelector->getSelectedId());
......@@ -1007,7 +1008,11 @@ void ControlPanel::loadStateFromXml(XmlElement* xml)
{
if (xmlNode->hasTagName("CONTROLPANEL"))
{
String recordPath = xmlNode->getStringAttribute("recordPath", String::empty);
if (!recordPath.isEmpty())
{
filenameComponent->setCurrentFile(File(recordPath), true, sendNotificationAsync);
}
appendText->setText(xmlNode->getStringAttribute("appendText", ""), dontSendNotification);
prependText->setText(xmlNode->getStringAttribute("prependText", ""), dontSendNotification);
recordSelector->setSelectedId(xmlNode->getIntAttribute("recordEngine",1), sendNotificationSync);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment