1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-09-01 17:12:20 +02:00

Fix disabled OK button in effects when monitoring

This commit is contained in:
Leland Lucius 2020-03-31 13:54:02 -05:00
parent e09b35f2c8
commit 8ae9a708fe

@ -1001,7 +1001,7 @@ bool EffectUIHost::Initialize()
auto gAudioIO = AudioIO::Get(); auto gAudioIO = AudioIO::Get();
mDisableTransport = !gAudioIO->IsAvailable(mProject); mDisableTransport = !gAudioIO->IsAvailable(mProject);
mPlaying = gAudioIO->IsStreamActive(); // not exactly right, but will suffice mPlaying = gAudioIO->IsStreamActive(); // not exactly right, but will suffice
mCapturing = gAudioIO->IsStreamActive() && gAudioIO->GetNumCaptureChannels() > 0; mCapturing = gAudioIO->IsStreamActive() && gAudioIO->GetNumCaptureChannels() > 0 && !gAudioIO->IsMonitoring();
} }
EffectPanel *w {}; EffectPanel *w {};
@ -1704,7 +1704,7 @@ void EffectUIHost::UpdateControls()
{ {
return; return;
} }
if (mCapturing || mDisableTransport) if (mCapturing || mDisableTransport)
{ {
// Don't allow focus to get trapped // Don't allow focus to get trapped