mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-04 17:49:45 +02:00
Remove some uses of MenuCommandHandler outside Menus.cpp...
... where the functions were simple call-throughs to something else
This commit is contained in:
parent
7b422afda5
commit
d1e2ec3b0f
@ -3224,7 +3224,8 @@ void AudacityProject::OpenFile(const wxString &fileNameArg, bool addtohistory)
|
||||
mTrackPanel->Refresh(true);
|
||||
*/
|
||||
closed = true;
|
||||
GetMenuCommandHandler(*this).OnClose(*this);
|
||||
SetMenuClose(true);
|
||||
Close();
|
||||
return;
|
||||
}
|
||||
else if (status & FSCKstatus_CHANGED)
|
||||
|
@ -47,7 +47,7 @@ bool OpenProjectCommand::Apply(const CommandContext & context){
|
||||
if(mFileName.IsEmpty())
|
||||
{
|
||||
auto project = context.GetProject();
|
||||
GetMenuCommandHandler(*project).OnOpen(*project);
|
||||
AudacityProject::OpenFiles(project);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user