MCPcopy Create free account
hub / github.com/MultiMC/Launcher / modCurrent

Method modCurrent

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

Source from the content-addressed store, hash-verified

353}
354
355void ModFolderPage::modCurrent(const QModelIndex &current, const QModelIndex &previous)
356{
357 if (!current.isValid())
358 {
359 ui->frame->clear();
360 return;
361 }
362 auto sourceCurrent = m_filterModel->mapToSource(current);
363 int row = sourceCurrent.row();
364 Mod &m = m_mods->operator[](row);
365 ui->frame->updateWithMod(m);
366}

Callers

nothing calls this directly

Calls 5

mapToSourceMethod · 0.80
operator[]Method · 0.80
updateWithModMethod · 0.80
isValidMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected