mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-31 16:09:28 +02:00
AddItemList no longer parses names for accelerators...
... This capability was unused. The only uses of item lists are in TrackMenus.cpp, for aligning tracks. The parsing of a translated string for encoded infomration was questionable.
This commit is contained in:
parent
e4968761ad
commit
db96d1ab10
@ -561,12 +561,9 @@ void CommandManager::AddItemList(const CommandID & name,
|
||||
bool bIsEffect)
|
||||
{
|
||||
for (size_t i = 0, cnt = nItems; i < cnt; i++) {
|
||||
auto translated = items[i].Translation();
|
||||
auto stripped = translated.BeforeFirst(wxT('\t'));
|
||||
auto accel = translated.AfterFirst(wxT('\t'));
|
||||
CommandListEntry *entry =
|
||||
NewIdentifier(name,
|
||||
stripped,
|
||||
items[i].Translation(),
|
||||
// No means yet to specify hasDialog !
|
||||
false,
|
||||
CurrentMenu(),
|
||||
@ -576,7 +573,6 @@ void CommandManager::AddItemList(const CommandID & name,
|
||||
i,
|
||||
cnt,
|
||||
Options{}
|
||||
.Accel(accel)
|
||||
.IsEffect(bIsEffect));
|
||||
entry->flags = flags;
|
||||
CurrentMenu()->Append(entry->id, GetLabel(entry));
|
||||
|
Loading…
x
Reference in New Issue
Block a user