MCPcopy Create free account
hub / github.com/FreesmTeam/FreesmLauncher / exportModMetadata

Method exportModMetadata

launcher/ui/pages/instance/ModFolderPage.cpp:455–465  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

453}
454
455void ModFolderPage::exportModMetadata()
456{
457 auto selection = m_filterModel->mapSelectionToSource(ui->treeView->selectionModel()->selection()).indexes();
458 auto selectedMods = m_model->selectedMods(selection);
459 if (selectedMods.length() == 0)
460 selectedMods = m_model->allMods();
461
462 std::sort(selectedMods.begin(), selectedMods.end(), [](const Mod* a, const Mod* b) { return a->name() < b->name(); });
463 ExportToModListDialog dlg(m_instance->name(), selectedMods, this);
464 dlg.exec();
465}

Callers

nothing calls this directly

Calls 4

selectedModsMethod · 0.80
allModsMethod · 0.80
nameMethod · 0.45
execMethod · 0.45

Tested by

no test coverage detected