Merge pull request #3007 from Trial97/open_source

add open source filter
This commit is contained in:
Alexandru Ionut Tripon
2024-10-28 15:04:33 +02:00
committed by GitHub
8 changed files with 31 additions and 5 deletions

View File

@@ -189,7 +189,7 @@ void ListModel::performPaginatedSearch()
auto netJob = makeShared<NetJob>("Flame::Search", APPLICATION->network());
auto searchUrl = FlameAPI().getSearchURL({ ModPlatform::ResourceType::MODPACK, nextSearchOffset, currentSearchTerm, sort,
m_filter->loaders, m_filter->versions, "", m_filter->categoryIds });
m_filter->loaders, m_filter->versions, "", m_filter->categoryIds, m_filter->openSource });
netJob->addNetAction(Net::ApiDownload::makeByteArray(QUrl(searchUrl.value()), response));
jobPtr = netJob;