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

Method refresh

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

Source from the content-addressed store, hash-verified

131}
132
133void ListModel::refresh()
134{
135 if (jobPtr) {
136 jobPtr->abort();
137 searchState = ResetRequested;
138 return;
139 } else {
140 beginResetModel();
141 modpacks.clear();
142 endResetModel();
143 searchState = None;
144 }
145 nextSearchOffset = 0;
146 performPaginatedSearch();
147}
148
149void ListModel::searchWithTerm(const QString& term, const int sort, const bool filter_changed)
150{

Callers

nothing calls this directly

Calls 2

abortMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected