mirror of
https://github.com/cookiengineer/audacity
synced 2026-03-18 12:16:40 +01:00
New attached structure ProjectSettings stores rate, snap-to, et al.
This commit is contained in:
@@ -801,14 +801,15 @@ bool MacroCommands::ApplyCommandInBatchMode( const wxString &friendlyCommand,
|
||||
CommandContext const * pContext)
|
||||
{
|
||||
AudacityProject *project = GetActiveProject();
|
||||
auto &settings = ProjectSettings::Get( *project );
|
||||
// Recalc flags and enable items that may have become enabled.
|
||||
MenuManager::Get(*project).UpdateMenus(*project, false);
|
||||
// enter batch mode...
|
||||
bool prevShowMode = project->GetShowId3Dialog();
|
||||
bool prevShowMode = settings.GetShowId3Dialog();
|
||||
project->mBatchMode++;
|
||||
auto cleanup = finally( [&] {
|
||||
// exit batch mode...
|
||||
project->SetShowId3Dialog(prevShowMode);
|
||||
settings.SetShowId3Dialog(prevShowMode);
|
||||
project->mBatchMode--;
|
||||
} );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user