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);
|
t->GetLink()->SetName(newName);
|
||||||
|
|
||||||
MixerBoard* pMixerBoard = this->GetMixerBoard();
|
MixerBoard* pMixerBoard = this->GetMixerBoard();
|
||||||
if (pMixerBoard && (t->GetKind() == Track::Wave))
|
auto pt = dynamic_cast<PlayableTrack*>(t);
|
||||||
pMixerBoard->UpdateName((WaveTrack*)t);
|
if (pMixerBoard && pt)
|
||||||
|
pMixerBoard->UpdateName(pt);
|
||||||
|
|
||||||
MakeParentPushState(wxString::Format(_("Renamed '%s' to '%s'"),
|
MakeParentPushState(wxString::Format(_("Renamed '%s' to '%s'"),
|
||||||
oldName.c_str(),
|
oldName.c_str(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user