mirror of
https://github.com/cookiengineer/audacity
synced 2026-02-06 19:52:19 +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:
@@ -188,6 +188,7 @@ void BatchProcessDialog::OnApplyToProject(wxCommandEvent &event)
|
||||
wxWindowDisabler wd;
|
||||
|
||||
gPrefs->Write(wxT("/Batch/ActiveChain"), name);
|
||||
gPrefs->Flush();
|
||||
|
||||
mBatchCommands.ReadChain(name);
|
||||
if (!mBatchCommands.ApplyChain()) {
|
||||
@@ -207,6 +208,7 @@ void BatchProcessDialog::OnApplyToFiles(wxCommandEvent &event)
|
||||
|
||||
wxString name = mChains->GetItemText(item);
|
||||
gPrefs->Write(wxT("/Batch/ActiveChain"), name);
|
||||
gPrefs->Flush();
|
||||
|
||||
AudacityProject *project = GetActiveProject();
|
||||
if (!project->GetIsEmpty()) {
|
||||
@@ -901,6 +903,7 @@ void EditChainsDialog::OnDefaults(wxCommandEvent &event)
|
||||
void EditChainsDialog::OnOK(wxCommandEvent &event)
|
||||
{
|
||||
gPrefs->Write(wxT("/Batch/ActiveChain"), mActiveChain);
|
||||
gPrefs->Flush();
|
||||
|
||||
if (mChanged) {
|
||||
if (!mBatchCommands.WriteChain(mActiveChain)) {
|
||||
|
||||
Reference in New Issue
Block a user