1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-02-21 13:41:21 +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:
v.audacity
2012-08-02 06:03:19 +00:00
parent e92d30b6e8
commit ebb4f530bb
57 changed files with 139 additions and 46 deletions

View File

@@ -389,6 +389,7 @@ void ShowHelpDialog(wxWindow *parent,
HelpMode = wxT("Local");
pProj->mHelpPref = HelpMode;
gPrefs->Write(wxT("/GUI/Help"), HelpMode);
gPrefs->Flush();
}
}

View File

@@ -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
//

View File

@@ -87,6 +87,7 @@ void ShowWarningDialog(wxWindow *parent,
WarningDialog dlog(parent, message);
gPrefs->Write(key, dlog.ShowModal());
gPrefs->Flush();
}
// Indentation settings for Vim and Emacs and unique identifier for Arch, a