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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user