1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-21 14:02:57 +02:00

Edit and Label Menus

This commit is contained in:
Paul Licameli
2018-10-22 08:39:10 -04:00
parent 4d6cad8ebc
commit 2792faa114
9 changed files with 1748 additions and 1682 deletions

View File

@@ -21,7 +21,6 @@ SetPreferenceCommand classes
#include "../Prefs.h"
#include "../ShuttleGui.h"
#include "../commands/CommandContext.h"
#include "../Project.h" // for "OnReloadPreferences".
bool GetPreferenceCommand::DefineParams( ShuttleParams & S ){
S.Define( mName, wxT("Name"), wxT("") );
@@ -75,7 +74,7 @@ bool SetPreferenceCommand::Apply(const CommandContext & context)
bool bOK = gPrefs->Write(mName, mValue) && gPrefs->Flush();
if( bOK && mbReload ){
auto &project = context.project;
GetMenuCommandHandler(project).OnReloadPreferences( context );
EditActions::DoReloadPreferences( project );
}
return bOK;
}