1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-26 15:23:48 +01:00

Chain export commands: no cwd; use the default export path, not open

This commit is contained in:
Paul Licameli
2017-08-02 17:53:35 -04:00
parent 5d48e96942
commit 5f7353af66

View File

@@ -434,7 +434,7 @@ wxString BatchCommands::BuildCleanFileName(const wxString &fileName, const wxStr
// double endTime = project->mTracks->GetEndTime(); // double endTime = project->mTracks->GetEndTime();
// double startTime = 0.0; // double startTime = 0.0;
//OnSelectAll(); //OnSelectAll();
pathName = gPrefs->Read(wxT("/DefaultOpenPath"), ::wxGetCwd()); pathName = FileNames::FindDefaultPath(FileNames::Operation::Export);
::wxMessageBox(wxString::Format(_("Export recording to %s\n/%s/%s%s"), ::wxMessageBox(wxString::Format(_("Export recording to %s\n/%s/%s%s"),
pathName.c_str(), cleanedString.c_str(), justName.c_str(), extension.c_str()), pathName.c_str(), cleanedString.c_str(), justName.c_str(), extension.c_str()),
_("Export recording"), _("Export recording"),