mirror of
https://github.com/cookiengineer/audacity
synced 2026-02-05 11:13:16 +01:00
Apparently, wxConfigBase::Write() does not update values for next access on all platforms unless Flush() method is called. Added many calls to wxConfigBase::Flush() to make sure the Rad() calls get the right values.
This commit is contained in:
@@ -122,8 +122,11 @@ bool EffectToneGen::PromptUser()
|
||||
/* Save last used values.
|
||||
Save duration unless value was got from selection, so we save only
|
||||
when user explicitly set up a value */
|
||||
if (mT1 == mT0)
|
||||
gPrefs->Write(wxT("/Effects/ToneGen/Duration"), mDuration);
|
||||
if (mT1 == mT0) // ANSWER ME: Only if end time equals start time?
|
||||
{
|
||||
return (gPrefs->Write(wxT("/Effects/ToneGen/Duration"), mDuration) &&
|
||||
gPrefs->Flush());
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user