Skip to content
Snippets Groups Projects
Commit 44e8c1de authored by Josh Siegle's avatar Josh Siegle
Browse files

Remove requirement for config files to have xml extension

parent c5b56391
No related branches found
No related tags found
No related merge requests found
This diff is collapsed.
......@@ -392,9 +392,17 @@ ControlPanel::ControlPanel(ProcessorGraph* graph_, AudioComponent* audio_)
addChildComponent(newDirectoryButton);
File executable = File::getSpecialLocation(File::currentExecutableFile);
#if defined(__APPLE__)
const String executableDirectory =
executable.getParentDirectory().getParentDirectory().getParentDirectory().getParentDirectory().getFullPathName();
#else
const String executableDirectory = executable.getParentDirectory().getFullPathName();
#endif
filenameComponent = new FilenameComponent("folder selector",
File::getCurrentWorkingDirectory().getFullPathName(),
executableDirectory,
true,
true,
true,
......
......@@ -391,7 +391,7 @@ bool UIComponent::perform(const InvocationInfo& info)
{
FileChooser fc("Choose a file to load...",
File::getCurrentWorkingDirectory(),
"*.xml",
"*",
true);
if (fc.browseForFileToOpen())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment