1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-08-12 06:01:13 +02:00

Bug 2262 - Scriptables are non-functional

Caused by commit e496876.
Problem caused by moving cookedParameter to another function, which then wasn't used.
This commit is contained in:
David Bailes 2019-12-23 11:08:19 +00:00
parent 1399f12c00
commit a512706646

View File

@ -626,12 +626,7 @@ CommandListEntry *CommandManager::NewIdentifier(const CommandID & nameIn,
const wxString & accel = options.accel;
bool bIsEffect = options.bIsEffect;
CommandID cookedParameter;
const auto &parameter = options.parameter;
if( parameter == "" )
cookedParameter = nameIn;
else
cookedParameter = parameter;
CommandID parameter = options.parameter == "" ? nameIn : options.parameter;
// if empty, new identifier's long label will be same as label, below:
const auto &longLabel = options.longName;