mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-02 16:49:41 +02:00
Fix reload bug.
This commit is contained in:
parent
23dd853a34
commit
de17e6bbc5
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user