| 236 | } |
| 237 | |
| 238 | void 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 | |
| 252 | auto MenuItemVisitor::AllocateEntry(const MenuRegistry::Options &options) |
| 253 | -> std::unique_ptr<CommandManager::CommandListEntry> |