mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-23 17:30:17 +01:00
MenuManager holds a back-reference to project; simplifies calls
This commit is contained in:
@@ -805,7 +805,7 @@ bool MacroCommands::ApplyCommandInBatchMode( const wxString &friendlyCommand,
|
||||
AudacityProject *project = GetActiveProject();
|
||||
auto &settings = ProjectSettings::Get( *project );
|
||||
// Recalc flags and enable items that may have become enabled.
|
||||
MenuManager::Get(*project).UpdateMenus(*project, false);
|
||||
MenuManager::Get(*project).UpdateMenus(false);
|
||||
// enter batch mode...
|
||||
bool prevShowMode = settings.GetShowId3Dialog();
|
||||
project->mBatchMode++;
|
||||
|
||||
Reference in New Issue
Block a user