mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-04 09:39:42 +02:00
Merge branch 'master'
This commit is contained in:
commit
64dc0cf43b
@ -140,7 +140,7 @@ this version.
|
||||
Source code to this program is always available; for more information visit
|
||||
our web site at:
|
||||
|
||||
http://audacity.sourceforge.net/download/
|
||||
http://audacityteam.org/download/source
|
||||
|
||||
Audacity is built upon other free libraries; some of these libraries may have
|
||||
come with Audacity in the lib-src directory. Others you are expected to install
|
||||
|
@ -8856,6 +8856,10 @@ void TrackPanel::OnChannelChange(wxCommandEvent & event)
|
||||
void TrackPanel::OnSwapChannels(wxCommandEvent & WXUNUSED(event))
|
||||
{
|
||||
Track *partner = mPopupMenuTarget->GetLink();
|
||||
Track *const focused = GetFocusedTrack();
|
||||
const bool hasFocus =
|
||||
(focused == mPopupMenuTarget || focused == partner);
|
||||
|
||||
SplitStereo(true);
|
||||
mPopupMenuTarget->SetChannel(Track::RightChannel);
|
||||
partner->SetChannel(Track::LeftChannel);
|
||||
@ -8868,6 +8872,9 @@ void TrackPanel::OnSwapChannels(wxCommandEvent & WXUNUSED(event))
|
||||
pMixerBoard->UpdateTrackClusters();
|
||||
}
|
||||
|
||||
if (hasFocus)
|
||||
SetFocusedTrack(partner);
|
||||
|
||||
MakeParentPushState(wxString::Format(_("Swapped Channels in '%s'"),
|
||||
mPopupMenuTarget->GetName().c_str()),
|
||||
_("Swap Channels"));
|
||||
|
Loading…
x
Reference in New Issue
Block a user