Skip to content

Commit ab07447

Browse files
committed
Update PathParameter to handle "default" as "None"
1 parent 5a30328 commit ab07447

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

Source/Processors/FileReader/FileReader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ void FileReader::initialize (bool signalChainIsLoading)
211211

212212
bool FileReader::setFile (String fullpath, bool shouldUpdateSignalChain)
213213
{
214-
if (fullpath.equalsIgnoreCase ("default"))
214+
if (fullpath.equalsIgnoreCase ("default") || fullpath.equalsIgnoreCase ("None"))
215215
{
216216
File executable = File::getSpecialLocation (File::currentApplicationFile);
217217

Source/Processors/Parameter/Parameter.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1296,7 +1296,11 @@ void PathParameter::toXml (XmlElement* xml)
12961296

12971297
void PathParameter::fromXml (XmlElement* xml)
12981298
{
1299-
currentValue = xml->getStringAttribute (getName(), defaultValue);
1299+
String savedValue = xml->getStringAttribute (getName(), defaultValue);
1300+
if (savedValue.equalsIgnoreCase ("default"))
1301+
savedValue = "None";
1302+
1303+
currentValue = savedValue;
13001304
}
13011305

13021306
String PathParameter::getChangeDescription()

0 commit comments

Comments
 (0)