mirror of
https://github.com/cookiengineer/audacity
synced 2025-09-09 17:03:24 +02:00
Bug 1928 - Export Multiple with a label track present defaults to export by tracks not labels
This commit is contained in:
parent
2d28b2e7e1
commit
ee2d8c11cb
@ -194,17 +194,18 @@ int ExportMultiple::ShowModal()
|
||||
return wxID_CANCEL;
|
||||
}
|
||||
|
||||
if (mNumLabels < 1) {
|
||||
mLabel->Enable(false);
|
||||
mTrack->SetValue(true);
|
||||
mLabel->SetValue(false);
|
||||
}
|
||||
bool bHasLabels = (mNumLabels > 0);
|
||||
bool bHasTracks = (mNumWaveTracks > 0);
|
||||
|
||||
mLabel->Enable(bHasLabels && bHasTracks);
|
||||
mTrack->Enable(bHasTracks);
|
||||
|
||||
if (mNumWaveTracks < 1) {
|
||||
mTrack->Enable(false);
|
||||
mLabel->SetValue(true);
|
||||
mTrack->SetValue(false);
|
||||
}
|
||||
// If you have 2 or more tracks, then it is export by tracks.
|
||||
// If you have no labels, then it is export by tracks.
|
||||
// Otherwise it is export by labels, by default.
|
||||
bool bPreferByLabels = bHasLabels && (mNumWaveTracks < 2);
|
||||
mLabel->SetValue(bPreferByLabels);
|
||||
mTrack->SetValue(!bPreferByLabels);
|
||||
|
||||
EnableControls();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user