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

Case insensitive command names.

This commit is contained in:
James Crook
2018-02-16 22:47:36 +00:00
committed by Paul Licameli
parent e9e9ee2998
commit 859fe69a15
3 changed files with 4 additions and 4 deletions

View File

@@ -1546,7 +1546,7 @@ bool CommandManager::HandleTextualCommand(const wxString & Str, const CommandCon
if (!entry->multi)
{
// Testing against labelPrefix too allows us to call Nyquist functions by name.
if( Str.IsSameAs( entry->name ) || Str.IsSameAs( entry->labelPrefix ))
if( Str.IsSameAs( entry->name, false ) || Str.IsSameAs( entry->labelPrefix, false ))
{
return HandleCommandEntry( entry.get(), flags, mask);
}
@@ -1566,7 +1566,7 @@ bool CommandManager::HandleTextualCommand(const wxString & Str, const CommandCon
const PluginDescriptor *plug = pm.GetFirstPlugin(PluginTypeEffect);
while (plug)
{
if (em.GetCommandIdentifier(plug->GetID()).IsSameAs(Str))
if (em.GetCommandIdentifier(plug->GetID()).IsSameAs(Str, false))
{
return proj->DoEffect(plug->GetID(), context, AudacityProject::OnEffectFlags::kConfigured);
}