mirror of
https://github.com/cookiengineer/audacity
synced 2026-02-07 12:12:23 +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:
@@ -162,7 +162,6 @@ void InitPreferences()
|
||||
{
|
||||
gPrefs->DeleteAll();
|
||||
gPrefs->Write(wxT("/NewPrefsInitialized"), true);
|
||||
gPrefs->Flush();
|
||||
}
|
||||
bool gone = wxRemoveFile(fn.GetFullPath()); // remove resetPrefs.txt
|
||||
if(!gone)
|
||||
@@ -233,7 +232,9 @@ void InitPreferences()
|
||||
|
||||
gPrefs->Write(wxT("/Version/Major"), AUDACITY_VERSION);
|
||||
gPrefs->Write(wxT("/Version/Minor"), AUDACITY_RELEASE);
|
||||
gPrefs->Write(wxT("/Version/Micro"), AUDACITY_REVISION);
|
||||
gPrefs->Write(wxT("/Version/Micro"), AUDACITY_REVISION);
|
||||
|
||||
gPrefs->Flush();
|
||||
}
|
||||
|
||||
void FinishPreferences()
|
||||
|
||||
Reference in New Issue
Block a user