mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-04 09:39:42 +02:00
Update mixer board for name change of MIDI track...
... as well as for WaveTrack, if EXPERIMENTAL_MIDI_OUT
This commit is contained in:
parent
721faf89c6
commit
beab669f42
@ -8813,8 +8813,9 @@ void TrackPanel::OnSetName(wxCommandEvent & WXUNUSED(event))
|
||||
t->GetLink()->SetName(newName);
|
||||
|
||||
MixerBoard* pMixerBoard = this->GetMixerBoard();
|
||||
if (pMixerBoard && (t->GetKind() == Track::Wave))
|
||||
pMixerBoard->UpdateName((WaveTrack*)t);
|
||||
auto pt = dynamic_cast<PlayableTrack*>(t);
|
||||
if (pMixerBoard && pt)
|
||||
pMixerBoard->UpdateName(pt);
|
||||
|
||||
MakeParentPushState(wxString::Format(_("Renamed '%s' to '%s'"),
|
||||
oldName.c_str(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user