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

Method refresh

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

Source from the content-addressed store, hash-verified

163}
164
165void ModpackListModel::refresh()
166{
167 if (jobPtr) {
168 jobPtr->abort();
169 searchState = ResetRequested;
170 return;
171 } else {
172 beginResetModel();
173 modpacks.clear();
174 endResetModel();
175 searchState = None;
176 }
177 nextSearchOffset = 0;
178 performPaginatedSearch();
179}
180
181static QString sortFromIndex(int index, bool& unhandled)
182{

Callers

nothing calls this directly

Calls 2

abortMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected