MCPcopy Create free account
hub / github.com/audacity/audacity / EnableMultiItem

Method EnableMultiItem

src/MenuCreator.cpp:238–250  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

236}
237
238void MenuItemVisitor::CommandListEntryEx::EnableMultiItem(bool b)
239{
240 if (menu) {
241 const auto item = menu->FindItem(id);
242 if (item) {
243 item->Enable(b);
244 return;
245 }
246 }
247 // using GET in a log message for devs' eyes only
248 wxLogDebug(wxT("Warning: Menu entry with id %i in %s not found"),
249 id, name.GET());
250}
251
252auto MenuItemVisitor::AllocateEntry(const MenuRegistry::Options &options)
253 -> std::unique_ptr<CommandManager::CommandListEntry>

Callers

nothing calls this directly

Calls 2

FindItemMethod · 0.80
EnableMethod · 0.45

Tested by

no test coverage detected