1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-19 14:17:41 +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:
Paul Licameli 2018-10-22 07:00:11 -04:00
parent 7b422afda5
commit d1e2ec3b0f
2 changed files with 3 additions and 2 deletions

View File

@ -3224,7 +3224,8 @@ void AudacityProject::OpenFile(const wxString &fileNameArg, bool addtohistory)
mTrackPanel->Refresh(true); mTrackPanel->Refresh(true);
*/ */
closed = true; closed = true;
GetMenuCommandHandler(*this).OnClose(*this); SetMenuClose(true);
Close();
return; return;
} }
else if (status & FSCKstatus_CHANGED) else if (status & FSCKstatus_CHANGED)

View File

@ -47,7 +47,7 @@ bool OpenProjectCommand::Apply(const CommandContext & context){
if(mFileName.IsEmpty()) if(mFileName.IsEmpty())
{ {
auto project = context.GetProject(); auto project = context.GetProject();
GetMenuCommandHandler(*project).OnOpen(*project); AudacityProject::OpenFiles(project);
} }
else else
{ {