MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / requestModInfo

Method requestModInfo

launcher/ui/pages/modplatform/ModModel.cpp:124–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122}
123
124void ListModel::requestModInfo(ModPlatform::IndexedPack& current, QModelIndex index)
125{
126 m_parent->apiProvider()->getModInfo(current, [this, index](QJsonDocument& doc, ModPlatform::IndexedPack& pack) {
127 if (!s_running.constFind(this).value())
128 return;
129 infoRequestFinished(doc, pack, index);
130 });
131}
132
133void ListModel::refresh()
134{

Callers 1

onSelectionChangedMethod · 0.80

Calls 2

getModInfoMethod · 0.80
apiProviderMethod · 0.80

Tested by

no test coverage detected