1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-09-18 17:10:55 +02:00

Don't force preset directory

This commit is contained in:
Leland Lucius 2021-02-16 17:28:51 -06:00
parent 4339632e25
commit 7cc1cf79ea

View File

@ -1863,9 +1863,9 @@ void VSTEffect::ExportPresets()
// //
// Passing a valid parent will cause some effects dialogs to malfunction // Passing a valid parent will cause some effects dialogs to malfunction
// upon returning from the FileNames::SelectFile(). // upon returning from the FileNames::SelectFile().
path = FileNames::SelectFile(FileNames::Operation::_None, path = FileNames::SelectFile(FileNames::Operation::Presets,
XO("Save VST Preset As:"), XO("Save VST Preset As:"),
FileNames::DataDir(), wxEmptyString,
wxT("preset"), wxT("preset"),
wxT("xml"), wxT("xml"),
{ {
@ -1920,10 +1920,10 @@ void VSTEffect::ImportPresets()
wxString path; wxString path;
// Ask the user for the real name // Ask the user for the real name
path = FileNames::SelectFile(FileNames::Operation::_None, path = FileNames::SelectFile(FileNames::Operation::Presets,
XO("Load VST Preset:"), XO("Load VST Preset:"),
FileNames::DataDir(),
wxEmptyString, wxEmptyString,
wxT("preset"),
wxT("xml"), wxT("xml"),
{ { { {
XO("VST preset files"), XO("VST preset files"),