mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-25 15:53:52 +02:00
Where FileSelector was used, default to Documents not cwd; save prefs
This commit is contained in:
@@ -21,8 +21,8 @@
|
||||
#include "../SampleFormat.h"
|
||||
#include "../widgets/wxPanelWrapper.h"
|
||||
|
||||
#include "FileDialog.h"
|
||||
|
||||
class FileDialog;
|
||||
class wxFileCtrlEvent;
|
||||
class wxMemoryDC;
|
||||
class wxStaticText;
|
||||
class AudacityProject;
|
||||
|
||||
@@ -18,12 +18,13 @@
|
||||
#include <wx/app.h>
|
||||
#include <wx/button.h>
|
||||
#include <wx/combobox.h>
|
||||
#include <wx/filedlg.h>
|
||||
#include <wx/log.h>
|
||||
#include <wx/msgdlg.h>
|
||||
#include <wx/process.h>
|
||||
#include <wx/sizer.h>
|
||||
#include <wx/textctrl.h>
|
||||
#include <FileDialog.h>
|
||||
#include "FileNames.h"
|
||||
#include "Export.h"
|
||||
|
||||
#include "../Mix.h"
|
||||
@@ -169,7 +170,8 @@ void ExportCLOptions::OnBrowse(wxCommandEvent& WXUNUSED(event))
|
||||
ext = wxT(".exe");
|
||||
#endif
|
||||
|
||||
path = FileSelector(_("Find path to command"),
|
||||
path = FileNames::SelectFile(FileNames::Operation::Open,
|
||||
_("Find path to command"),
|
||||
wxEmptyString,
|
||||
wxEmptyString,
|
||||
ext,
|
||||
|
||||
@@ -53,6 +53,7 @@
|
||||
#include <wx/spinctrl.h>
|
||||
#include <wx/combobox.h>
|
||||
#include <wx/listimpl.cpp>
|
||||
#include <FileDialog.h>
|
||||
|
||||
#include "../FileFormats.h"
|
||||
#include "../Internat.h"
|
||||
|
||||
@@ -69,6 +69,7 @@
|
||||
#include <wx/checkbox.h>
|
||||
#include <wx/dynlib.h>
|
||||
#include <wx/ffile.h>
|
||||
#include <wx/filedlg.h>
|
||||
#include <wx/intl.h>
|
||||
#include <wx/log.h>
|
||||
#include <wx/mimetype.h>
|
||||
@@ -91,8 +92,6 @@
|
||||
#include "../Track.h"
|
||||
#include "../widgets/LinkingHtmlWindow.h"
|
||||
|
||||
#include "FileDialog.h"
|
||||
|
||||
#include "Export.h"
|
||||
|
||||
#include <lame/lame.h>
|
||||
@@ -661,7 +660,8 @@ public:
|
||||
* "Where would I find the file %s" instead if you want. */
|
||||
question.Printf(_("Where is %s?"), mName.c_str());
|
||||
|
||||
wxString path = FileSelector(question,
|
||||
wxString path = FileNames::SelectFile(FileNames::Operation::None,
|
||||
question,
|
||||
mLibPath.GetPath(),
|
||||
mLibPath.GetName(),
|
||||
wxT(""),
|
||||
|
||||
Reference in New Issue
Block a user