mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-25 00:30:07 +02:00
Preview button of Noise Reduction always disabled when editing macro...
... as was intended but not properly implemented
This commit is contained in:
parent
11748750fb
commit
b8fd99692d
@ -474,10 +474,9 @@ bool EffectNoiseReduction::ShowInterface(
|
|||||||
// Doesn't use the factory but substitutes its own dialog
|
// Doesn't use the factory but substitutes its own dialog
|
||||||
|
|
||||||
// We may want to twiddle the levels if we are setting
|
// We may want to twiddle the levels if we are setting
|
||||||
// from an automation dialog, the only case in which we can
|
// from an automation dialog
|
||||||
// get here without any wavetracks.
|
|
||||||
return mSettings->PromptUser(this, parent,
|
return mSettings->PromptUser(this, parent,
|
||||||
bool(mStatistics), (GetNumWaveTracks() == 0));
|
bool(mStatistics), forceModal);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool EffectNoiseReduction::Settings::PromptUser
|
bool EffectNoiseReduction::Settings::PromptUser
|
||||||
|
@ -157,7 +157,7 @@ bool EffectNoiseRemoval::CheckWhetherSkipEffect()
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool EffectNoiseRemoval::ShowInterface(
|
bool EffectNoiseRemoval::ShowInterface(
|
||||||
wxWindow &parent, const EffectDialogFactory &, bool forceModal /* forceModal */ )
|
wxWindow &parent, const EffectDialogFactory &, bool forceModal )
|
||||||
{
|
{
|
||||||
// to do: use forceModal correctly
|
// to do: use forceModal correctly
|
||||||
NoiseRemovalDialog dlog(this, &parent);
|
NoiseRemovalDialog dlog(this, &parent);
|
||||||
@ -170,9 +170,8 @@ bool EffectNoiseRemoval::ShowInterface(
|
|||||||
dlog.mKeepNoise->SetValue(mbLeaveNoise);
|
dlog.mKeepNoise->SetValue(mbLeaveNoise);
|
||||||
|
|
||||||
// We may want to twiddle the levels if we are setting
|
// We may want to twiddle the levels if we are setting
|
||||||
// from an automation dialog, the only case in which we can
|
// from an automation dialog
|
||||||
// get here without any wavetracks.
|
bool bAllowTwiddleSettings = forceModal;
|
||||||
bool bAllowTwiddleSettings = (GetNumWaveTracks() == 0);
|
|
||||||
|
|
||||||
if (mHasProfile || bAllowTwiddleSettings) {
|
if (mHasProfile || bAllowTwiddleSettings) {
|
||||||
dlog.m_pButton_Preview->Enable(GetNumWaveTracks() != 0);
|
dlog.m_pButton_Preview->Enable(GetNumWaveTracks() != 0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user