1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-26 23:33:49 +01:00

Eliminate GetActiveProject from WaveTrack.cpp

This commit is contained in:
Paul Licameli
2020-01-07 16:00:36 -05:00
parent 7bce0a643b
commit 852c07bc58
8 changed files with 32 additions and 27 deletions

View File

@@ -10,6 +10,7 @@
#include "../PluginManager.h"
#include "../Prefs.h"
#include "../Project.h"
#include "../ProjectSettings.h"
#include "../ProjectWindow.h"
#include "../Screenshot.h"
#include "../commands/CommandContext.h"
@@ -512,8 +513,9 @@ void OnScreenshot(const CommandContext &context )
void OnBenchmark(const CommandContext &context)
{
auto &project = context.project;
auto &settings = ProjectSettings::Get( project );
auto &window = GetProjectFrame( project );
::RunBenchmark(&window);
::RunBenchmark( &window, settings );
}
void OnSimulateRecordingErrors(const CommandContext &context)