mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-19 06:07:42 +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);
|
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)
|
||||||
|
@ -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
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user