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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user