1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-19 17:11:12 +02:00

Fix auto-reload of changed Nyquist effects

This commit is contained in:
Leland Lucius
2015-04-23 07:36:04 -05:00
parent 71cb68b798
commit d841172abb

View File

@@ -378,6 +378,24 @@ bool NyquistEffect::SetAutomationParameters(EffectAutomationParameters & parms)
// Effect Implementation
bool NyquistEffect::Init()
{
if (!mExternal)
{
//TODO: If we want to auto-add parameters from spectral selection,
//we will need to modify this test.
//Note that removing it stops the caching of parameter values,
//(during this session).
if (mFileName.GetModificationTime().IsLaterThan(mFileModified))
{
ParseFile();
mFileModified = mFileName.GetModificationTime();
}
}
return true;
}
bool NyquistEffect::Process()
{
bool success = true;
@@ -1712,19 +1730,6 @@ bool NyquistEffect::TransferDataFromPromptWindow()
bool NyquistEffect::TransferDataFromEffectWindow()
{
if (!mExternal)
{
//TODO: If we want to auto-add parameters from spectral selection,
//we will need to modify this test.
//Note that removing it stops the caching of parameter values,
//(during this session).
if (mFileName.GetModificationTime().IsLaterThan(mFileModified))
{
ParseFile();
mFileModified = mFileName.GetModificationTime();
}
}
if (mControls.GetCount() == 0)
{
return true;