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

CommandManager::AddItemList requires flags

This commit is contained in:
Paul Licameli
2018-10-17 17:02:27 -04:00
parent 742e578d49
commit 63f20f3405
3 changed files with 7 additions and 2 deletions

View File

@@ -851,6 +851,7 @@ void CommandManager::AddItemList(const wxString & name,
size_t nItems,
CommandHandlerFinder finder,
CommandFunctorPointer callback,
CommandFlag flags,
bool bIsEffect)
{
for (size_t i = 0, cnt = nItems; i < cnt; i++) {
@@ -866,6 +867,7 @@ void CommandManager::AddItemList(const wxString & name,
i,
cnt,
bIsEffect);
entry->mask = entry->flags = flags;
CurrentMenu()->Append(entry->id, GetLabel(entry));
mbSeparatorAllowed = true;
}

View File

@@ -192,6 +192,7 @@ class AUDACITY_DLL_API CommandManager final : public XMLTagHandler
size_t nItems,
CommandHandlerFinder finder,
CommandFunctorPointer callback,
CommandFlag flags,
bool bIsEffect = false);
void AddItem(const wxChar *name,