1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-01 16:19:43 +02:00

Fix reload bug.

This commit is contained in:
James Crook 2018-02-18 16:54:17 +00:00 committed by Paul Licameli
parent 23dd853a34
commit de17e6bbc5

View File

@ -72,8 +72,9 @@ void SetPreferenceCommand::PopulateOrExchange(ShuttleGui & S)
bool SetPreferenceCommand::Apply(const CommandContext & context)
{
bool bOK = gPrefs->Write(mName, mValue) && gPrefs->Flush();
if( bOK && mbReload )
if( bOK && mbReload ){
context.GetProject()->OnReloadPreferences( context );
}
return bOK;
}