mirror of
https://github.com/cookiengineer/audacity
synced 2026-02-19 09:17:54 +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:
@@ -78,7 +78,7 @@ bool EffectTruncSilence::Init()
|
||||
mSilenceCompressRatio = 4.0;
|
||||
gPrefs->Write(wxT("/Effects/TruncateSilence/CompressRatio"), 40L);
|
||||
}
|
||||
return true;
|
||||
return gPrefs->Flush();
|
||||
}
|
||||
|
||||
bool EffectTruncSilence::CheckWhetherSkipEffect()
|
||||
@@ -105,6 +105,7 @@ bool EffectTruncSilence::PromptUser()
|
||||
gPrefs->Write(wxT("/Effects/TruncateSilence/LongestAllowedSilentMs"), mTruncLongestAllowedSilentMs);
|
||||
gPrefs->Write(wxT("/Effects/TruncateSilence/DbChoiceIndex"), mTruncDbChoiceIndex);
|
||||
gPrefs->Write(wxT("/Effects/TruncateSilence/CompressRatio"), (int)floor(10.0*mSilenceCompressRatio+0.5));
|
||||
gPrefs->Flush();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user