1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-21 06:01:13 +02:00

Where FileSelector was used, default to Documents not cwd; save prefs

This commit is contained in:
Paul Licameli
2017-08-02 12:41:29 -04:00
parent a9d4c2c05b
commit 5d48e96942
20 changed files with 168 additions and 101 deletions

View File

@@ -16,9 +16,10 @@ Provides thread-safe logging based on the wxWidgets log facility.
#include "Audacity.h" // This should always be included first
#include "AudacityLogger.h"
#include "FileDialog.h"
#include "FileNames.h"
#include "ShuttleGui.h"
#include <wx/filedlg.h>
#include <wx/log.h>
#include <wx/frame.h>
#include <wx/icon.h>
@@ -292,7 +293,8 @@ void AudacityLogger::OnSave(wxCommandEvent & WXUNUSED(e))
{
wxString fName = _("log.txt");
fName = FileSelector(_("Save log to:"),
fName = FileNames::SelectFile(FileNames::Operation::Export,
_("Save log to:"),
wxEmptyString,
fName,
wxT("txt"),