| 201 | } |
| 202 | |
| 203 | void 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 | |
| 220 | void ModpackListModel::getLogo(const QString& logo, const QString& logoUrl, LogoCallback callback) |
| 221 | { |
no test coverage detected