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:
@@ -324,6 +324,7 @@ void BenchmarkDialog::OnRun( wxCommandEvent &event )
|
||||
bool editClipCanMove = true;
|
||||
gPrefs->Read(wxT("/GUI/EditClipCanMove"), &editClipCanMove);
|
||||
gPrefs->Write(wxT("/GUI/EditClipCanMove"), false);
|
||||
gPrefs->Flush();
|
||||
|
||||
// Rememebr the old blocksize, so that we can restore it later.
|
||||
int oldBlockSize = Sequence::GetMaxDiskBlockSize();
|
||||
@@ -538,6 +539,7 @@ void BenchmarkDialog::OnRun( wxCommandEvent &event )
|
||||
HoldPrint(false);
|
||||
|
||||
gPrefs->Write(wxT("/GUI/EditClipCanMove"), editClipCanMove);
|
||||
gPrefs->Flush();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user