mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-22 06:22:58 +02:00
No more functor objects; all command handler functions take same args
This commit is contained in:
@@ -61,12 +61,14 @@ bool SelectCommand::Apply(CommandExecutionContext context)
|
||||
if (mode.IsSameAs(wxT("None")))
|
||||
{
|
||||
// select none
|
||||
context.GetProject()->OnSelectNone();
|
||||
auto project = context.GetProject();
|
||||
project->OnSelectNone(*project);
|
||||
}
|
||||
else if (mode.IsSameAs(wxT("All")))
|
||||
{
|
||||
// select all
|
||||
context.GetProject()->OnSelectAll();
|
||||
auto project = context.GetProject();
|
||||
project->OnSelectAll(*project);
|
||||
}
|
||||
else if (mode.IsSameAs(wxT("Range")))
|
||||
{
|
||||
|
Reference in New Issue
Block a user