propagate side as enum instead of Qstring (#3544)

This commit is contained in:
timoreo 2025-07-09 10:01:51 +02:00 committed by GitHub
commit 37a9271d5b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 89 additions and 131 deletions

View file

@ -153,8 +153,9 @@ void ModpackListModel::performPaginatedSearch()
} // TODO: Move to standalone API
ResourceAPI::SortingMethod sort{};
sort.name = currentSort;
auto searchUrl = ModrinthAPI().getSearchURL({ ModPlatform::ResourceType::MODPACK, nextSearchOffset, currentSearchTerm, sort,
m_filter->loaders, m_filter->versions, "", m_filter->categoryIds, m_filter->openSource });
auto searchUrl =
ModrinthAPI().getSearchURL({ ModPlatform::ResourceType::MODPACK, nextSearchOffset, currentSearchTerm, sort, m_filter->loaders,
m_filter->versions, ModPlatform::Side::NoSide, m_filter->categoryIds, m_filter->openSource });
auto netJob = makeShared<NetJob>("Modrinth::SearchModpack", APPLICATION->network());
netJob->addNetAction(Net::ApiDownload::makeByteArray(QUrl(searchUrl.value()), m_allResponse));