mirror of
https://github.com/cookiengineer/audacity
synced 2026-02-08 04:32:00 +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:
@@ -88,11 +88,13 @@ bool LoadFFmpeg(bool showerror)
|
||||
{
|
||||
DropFFmpegLibs();
|
||||
gPrefs->Write(wxT("/FFmpeg/Enabled"), false);
|
||||
gPrefs->Flush();
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
gPrefs->Write(wxT("/FFmpeg/Enabled"), true);
|
||||
gPrefs->Flush();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -745,6 +747,7 @@ bool FFmpegLibs::FindLibs(wxWindow *parent)
|
||||
wxLogMessage(wxT("User-specified FFmpeg file exists. Success."));
|
||||
mLibAVFormatPath = path;
|
||||
gPrefs->Write(wxT("/FFmpeg/FFmpegLibPath"), mLibAVFormatPath);
|
||||
gPrefs->Flush();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user