1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-03-25 07:35:44 +01:00

Remove flushing of preferences in ShuttlePrefs and only

flush when all settings have been written.
This commit is contained in:
Leland Lucius
2015-12-21 20:07:24 -06:00
parent d3fdccffce
commit 9dd79c9f80
9 changed files with 17 additions and 11 deletions

View File

@@ -1990,9 +1990,12 @@ void ExportFFmpegOptions::OnOK(wxCommandEvent& WXUNUSED(event))
if (selcdc > -1) gPrefs->Write(wxT("/FileFormats/FFmpegCodec"),mCodecList->GetString(selcdc));
if (selfmt > -1) gPrefs->Write(wxT("/FileFormats/FFmpegFormat"),mFormatList->GetString(selfmt));
gPrefs->Flush();
ShuttleGui S(this, eIsSavingToPrefs);
PopulateOrExchange(S);
gPrefs->Flush();
EndModal(wxID_OK);
return;