| 358 | } |
| 359 | |
| 360 | void ModListContextMenu::addOverwriteActions(ModInfo::Ptr mod) |
| 361 | { |
| 362 | if (QDir(mod->absolutePath()).count() > 2) { |
| 363 | addAction(tr("Sync to Mods..."), [=]() { |
| 364 | m_core.syncOverwrite(); |
| 365 | }); |
| 366 | addAction(tr("Create Mod..."), [=]() { |
| 367 | m_actions.createModFromOverwrite(); |
| 368 | }); |
| 369 | addAction(tr("Move content to Mod..."), [=]() { |
| 370 | m_actions.moveOverwriteContentToExistingMod(); |
| 371 | }); |
| 372 | addAction(tr("Clear Overwrite..."), [=]() { |
| 373 | m_actions.clearOverwrite(); |
| 374 | }); |
| 375 | } |
| 376 | addAction(tr("Open in Explorer"), [=]() { |
| 377 | m_actions.openExplorer(m_selected); |
| 378 | }); |
| 379 | } |
| 380 | |
| 381 | void ModListContextMenu::addSeparatorActions(ModInfo::Ptr mod) |
| 382 | { |
nothing calls this directly
no test coverage detected