mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-22 06:22:58 +02:00
Can choose by Channel or by Track in Set commands.
This commit is contained in:
committed by
Paul Licameli
parent
8ab9345268
commit
e9e9ee2998
@@ -153,19 +153,17 @@ bool SelectTracksCommand::Apply(const CommandContext &context)
|
||||
bool sel = mFirstTrack <= index && index <= last;
|
||||
if( mMode == 0 ){ // Set
|
||||
t->SetSelected(sel);
|
||||
// if (sel)
|
||||
// context.Status(wxT("Selected track '") + t->GetName() + wxT("'"));
|
||||
}
|
||||
else if( mMode == 1 && sel ){ // Add
|
||||
t->SetSelected(sel);
|
||||
// context.Status(wxT("Added track '") + t->GetName() + wxT("'"));
|
||||
}
|
||||
else if( mMode == 2 && sel ){ // Remove
|
||||
t->SetSelected(!sel);
|
||||
// context.Status(wxT("Removed track '") + t->GetName() + wxT("'"));
|
||||
}
|
||||
// Do second channel in stereo track too.
|
||||
if( !t->GetLinked() )
|
||||
++index;
|
||||
t = iter.Next();
|
||||
++index;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user