mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-02 08:59:28 +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:
parent
e2b5dade4c
commit
adf243568b
@ -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,8 +850,14 @@ 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();
|
||||||
return ProgressResult::Cancelled;
|
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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
/* 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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user