1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-21 14:02:57 +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 e3ef968d57
commit 6a5a61d39a

View File

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