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

Fix Show/Hide Tags dialog for export multiple too.

Previously it was not remembering a change in show/hide.
This commit is contained in:
James Crook 2019-04-13 12:25:31 +01:00
parent e2b5dade4c
commit adf243568b

View File

@ -777,7 +777,6 @@ ProgressResult ExportMultiple::ExportMultipleByTrack(bool byName,
const wxString &prefix, bool addNumber) const wxString &prefix, bool addNumber)
{ {
wxASSERT(mProject); wxASSERT(mProject);
bool tagsPrompt = mProject->GetShowId3Dialog();
int l = 0; // track counter int l = 0; // track counter
auto ok = ProgressResult::Success; auto ok = ProgressResult::Success;
FilePaths otherNames; FilePaths otherNames;
@ -851,9 +850,15 @@ ProgressResult ExportMultiple::ExportMultipleByTrack(bool byName,
setting.filetags.SetTag(TAG_TITLE, title); setting.filetags.SetTag(TAG_TITLE, title);
setting.filetags.SetTag(TAG_TRACK, l+1); setting.filetags.SetTag(TAG_TRACK, l+1);
// let the user have a crack at editing it, exit if cancelled // let the user have a crack at editing it, exit if cancelled
if (!setting.filetags.ShowEditDialog(mProject,_("Edit Metadata Tags"), tagsPrompt)) bool bShowTagsDialog = mProject->GetShowId3Dialog();
if( bShowTagsDialog ){
bool bCancelled = !setting.filetags.ShowEditDialog(mProject,_("Edit Metadata Tags"), bShowTagsDialog);
gPrefs->Read(wxT("/AudioFiles/ShowId3Dialog"), &bShowTagsDialog, true);
mProject->SetShowId3Dialog( bShowTagsDialog );
if( bCancelled )
return ProgressResult::Cancelled; return ProgressResult::Cancelled;
} }
}
/* add the settings to the array of settings to be used for export */ /* add the settings to the array of settings to be used for export */
exportSettings.push_back(setting); exportSettings.push_back(setting);