1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-27 07:43:50 +01:00

Remove GetActiveProject from EffectRack...

... and make one EffectRack window per project
This commit is contained in:
Paul Licameli
2020-01-04 16:12:00 -05:00
parent dd4870b83f
commit 129c9deb99
5 changed files with 38 additions and 47 deletions

View File

@@ -23,7 +23,7 @@
#include "../tracks/ui/TrackView.h"
#ifdef EXPERIMENTAL_EFFECTS_RACK
#include "../effects/EffectManager.h"
#include "../effects/EffectRack.h"
#endif
#include <wx/scrolbar.h>
@@ -383,9 +383,10 @@ void OnShowClipping(const CommandContext &context)
}
#if defined(EXPERIMENTAL_EFFECTS_RACK)
void OnShowEffectsRack(const CommandContext &WXUNUSED(context) )
void OnShowEffectsRack(const CommandContext &context )
{
EffectManager::Get().ShowRack();
auto &rack = EffectRack::Get( context.project );
rack.Show( !rack.IsShown() );
}
#endif