MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / enabledModSelected

Method enabledModSelected

tools/launcher/launcherwindow.cpp:460–475  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

458}
459
460void LauncherWindow::enabledModSelected(const QString &itemName)
461{
462 UString modName = itemName.toStdString();
463 const auto foundMods = enumerateMods();
464 for (const auto &mod : foundMods)
465 {
466 const auto &modInfo = mod.second;
467 if (modInfo.getName() == modName)
468 {
469 this->showModInfo(modInfo);
470 this->selectedModName = modName;
471 return;
472 }
473 }
474 updateAvailableLanguages();
475}
476
477void LauncherWindow::disabledModSelected(const QString &itemName)
478{

Callers

nothing calls this directly

Calls 3

showModInfoMethod · 0.95
enumerateModsFunction · 0.85
getNameMethod · 0.45

Tested by

no test coverage detected