mirror of
https://github.com/cookiengineer/audacity
synced 2026-03-07 23:15:36 +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:
@@ -1215,7 +1215,7 @@ void Meter::OnDisableMeter(wxCommandEvent &evt)
|
||||
{
|
||||
gPrefs->Write(wxT("/Meter/MeterOutputDisabled"), mMeterDisabled);
|
||||
}
|
||||
|
||||
gPrefs->Flush();
|
||||
}
|
||||
|
||||
void Meter::OnHorizontal(wxCommandEvent &evt)
|
||||
@@ -1309,21 +1309,8 @@ void Meter::OnPreferences(wxCommandEvent &evt)
|
||||
if (d.ShowModal() == wxID_OK) {
|
||||
mMeterRefreshRate = d.GetValue();
|
||||
gPrefs->Write(wxT("/Meter/MeterRefreshRate"), mMeterRefreshRate);
|
||||
gPrefs->Flush();
|
||||
}
|
||||
|
||||
mTimer.Start(1000 / mMeterRefreshRate);
|
||||
}
|
||||
|
||||
// Indentation settings for Vim and Emacs.
|
||||
// Please do not modify past this point.
|
||||
//
|
||||
// Local Variables:
|
||||
// c-basic-offset: 3
|
||||
// indent-tabs-mode: nil
|
||||
// End:
|
||||
//
|
||||
// vim: et sts=3 sw=3
|
||||
//
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user