1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-02-17 16:28:13 +01:00

MenuCommandHandler is not a base class of MenuManager...

... This forces a better placement of state variables in the appropriate
classes.

In future perhaps, MenuManager should be splintered into several classes, one
for each of the main toolbar menus.
This commit is contained in:
Paul Licameli
2018-10-15 14:07:32 -04:00
committed by James Crook
parent d693b36bdb
commit fc6570646d
11 changed files with 75 additions and 56 deletions

View File

@@ -791,7 +791,7 @@ bool MacroCommands::ApplyCommandInBatchMode( const wxString &friendlyCommand,
{
AudacityProject *project = GetActiveProject();
// Recalc flags and enable items that may have become enabled.
GetMenuCommandHandler(*project).UpdateMenus(*project, false);
GetMenuManager(*project).UpdateMenus(*project, false);
// enter batch mode...
bool prevShowMode = project->GetShowId3Dialog();
project->mBatchMode++;