mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-03 00:59:43 +02:00
Fix initialization of Debug and Preview buttons
This commit is contained in:
parent
10e75a4bcf
commit
d78033887f
@ -137,8 +137,6 @@ NyquistEffect::NyquistEffect(const wxString &fName)
|
|||||||
mRestoreSplits = true; // Default: Restore split lines.
|
mRestoreSplits = true; // Default: Restore split lines.
|
||||||
mMergeClips = -1; // Default (auto): Merge if length remains unchanged.
|
mMergeClips = -1; // Default (auto): Merge if length remains unchanged.
|
||||||
|
|
||||||
mDebugButton = true; // Debug button enabled by default.
|
|
||||||
|
|
||||||
mVersion = 4;
|
mVersion = 4;
|
||||||
|
|
||||||
mStop = false;
|
mStop = false;
|
||||||
@ -427,7 +425,8 @@ bool NyquistEffect::Init()
|
|||||||
if (mIsPrompt) {
|
if (mIsPrompt) {
|
||||||
mType = EffectTypeProcess;
|
mType = EffectTypeProcess;
|
||||||
mName = XO("Nyquist Prompt");
|
mName = XO("Nyquist Prompt");
|
||||||
mDebugButton = true; // Debug button always enabled for Nyquist Prompt.
|
mDebugButton = true; // Debug button always enabled for Nyquist Prompt.
|
||||||
|
mEnablePreview = true; // Preview button always enabled for Nyquist Prompt.
|
||||||
}
|
}
|
||||||
|
|
||||||
// As of Audacity 2.1.2 rc1, 'spectral' effects are allowed only if
|
// As of Audacity 2.1.2 rc1, 'spectral' effects are allowed only if
|
||||||
@ -1814,6 +1813,8 @@ bool NyquistEffect::ParseProgram(wxInputStream & stream)
|
|||||||
mHelpFileExists = false;
|
mHelpFileExists = false;
|
||||||
mDebug = false;
|
mDebug = false;
|
||||||
mTrace = false;
|
mTrace = false;
|
||||||
|
mDebugButton = true; // Debug button enabled by default.
|
||||||
|
mEnablePreview = true; // Preview button enabled by default.
|
||||||
|
|
||||||
mFoundType = false;
|
mFoundType = false;
|
||||||
while (!stream.Eof() && stream.IsOk())
|
while (!stream.Eof() && stream.IsOk())
|
||||||
@ -1865,8 +1866,6 @@ void NyquistEffect::ParseFile()
|
|||||||
|
|
||||||
bool NyquistEffect::ParseCommand(const wxString & cmd)
|
bool NyquistEffect::ParseCommand(const wxString & cmd)
|
||||||
{
|
{
|
||||||
mEnablePreview = true;
|
|
||||||
|
|
||||||
wxStringInputStream stream(cmd + wxT(" "));
|
wxStringInputStream stream(cmd + wxT(" "));
|
||||||
|
|
||||||
return ParseProgram(stream);
|
return ParseProgram(stream);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user