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

Method searchWithTerm

launcher/ui/pages/modplatform/modrinth/ModrinthModel.cpp:203–218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201}
202
203void ModpackListModel::searchWithTerm(const QString& term, const int sort)
204{
205 bool unhandled = false;
206 auto sort_str = sortFromIndex(sort, unhandled);
207 if (unhandled)
208 return;
209
210 if (currentSearchTerm == term && currentSearchTerm.isNull() == term.isNull() && currentSort == sort_str) {
211 return;
212 }
213
214 currentSearchTerm = term;
215 currentSort = sort_str;
216
217 refresh();
218}
219
220void ModpackListModel::getLogo(const QString& logo, const QString& logoUrl, LogoCallback callback)
221{

Callers 1

triggerSearchMethod · 0.45

Calls 1

sortFromIndexFunction · 0.85

Tested by

no test coverage detected