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

Method requestModVersions

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

Source from the content-addressed store, hash-verified

102}
103
104void ListModel::requestModVersions(ModPlatform::IndexedPack const& current, QModelIndex index)
105{
106 auto profile = (dynamic_cast<MinecraftInstance*>((dynamic_cast<ModPage*>(parent()))->m_instance))->getPackProfile();
107
108 m_parent->apiProvider()->getVersions({ current.addonId.toString(), getMineVersions(), profile->getModLoaders() },
109 [this, current, index](QJsonDocument& doc, QString addonId) {
110 if (!s_running.constFind(this).value())
111 return;
112 versionRequestSucceeded(doc, addonId, index);
113 });
114}
115
116void ListModel::performPaginatedSearch()
117{

Callers 1

onSelectionChangedMethod · 0.80

Calls 5

getPackProfileMethod · 0.80
getVersionsMethod · 0.80
apiProviderMethod · 0.80
getModLoadersMethod · 0.80
toStringMethod · 0.45

Tested by

no test coverage detected