| 379 | } |
| 380 | |
| 381 | void ModListContextMenu::addSeparatorActions(ModInfo::Ptr mod) |
| 382 | { |
| 383 | addCategoryContextMenus(mod); |
| 384 | addSeparator(); |
| 385 | |
| 386 | addAction(tr("Rename Separator..."), [=]() { |
| 387 | m_actions.renameMod(m_index); |
| 388 | }); |
| 389 | addAction(tr("Remove Separator..."), [=]() { |
| 390 | m_actions.removeMods(m_selected); |
| 391 | }); |
| 392 | addSeparator(); |
| 393 | |
| 394 | if (m_view->sortColumn() == ModList::COL_PRIORITY) { |
| 395 | addSendToContextMenu(); |
| 396 | addSeparator(); |
| 397 | } |
| 398 | addAction(tr("Select Color..."), [=]() { |
| 399 | m_actions.setColor(m_selected, m_index); |
| 400 | }); |
| 401 | |
| 402 | if (mod->color().isValid()) { |
| 403 | addAction(tr("Reset Color"), [=]() { |
| 404 | m_actions.resetColor(m_selected); |
| 405 | }); |
| 406 | } |
| 407 | |
| 408 | addSeparator(); |
| 409 | } |
| 410 | |
| 411 | void ModListContextMenu::addForeignActions(ModInfo::Ptr mod) |
| 412 | { |
nothing calls this directly
no test coverage detected