mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 01:54:20 +03:00
oops forgot again
Signed-off-by: 0x189D7997 <199489335+0x189D7997@users.noreply.github.com>
This commit is contained in:
parent
4151db6c94
commit
fdd1a5dde8
2 changed files with 2 additions and 2 deletions
|
|
@ -163,7 +163,7 @@ void ResourceModel::search()
|
||||||
};
|
};
|
||||||
auto project = std::make_shared<ModPlatform::IndexedPack>();
|
auto project = std::make_shared<ModPlatform::IndexedPack>();
|
||||||
project->addonId = projectId;
|
project->addonId = projectId;
|
||||||
if (auto job = m_api->getProjectInfo({ project }, std::move(callbacks)); job)
|
if (auto job = m_api->getProjectInfo({ project }, std::move(callbacks), false); job)
|
||||||
runSearchJob(job);
|
runSearchJob(job);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -166,7 +166,7 @@ void ListModel::performPaginatedSearch()
|
||||||
{
|
{
|
||||||
static const FlameAPI api;
|
static const FlameAPI api;
|
||||||
|
|
||||||
// activate id search only for numerical values because all CurseForge ids are numerical
|
// activate search by id only for numerical values because all CurseForge ids are numerical
|
||||||
static const QRegularExpression s_projectIdExpr("^\\#[0-9]+$");
|
static const QRegularExpression s_projectIdExpr("^\\#[0-9]+$");
|
||||||
if (m_searchState != ResetRequested && s_projectIdExpr.match(m_currentSearchTerm).hasMatch()) {
|
if (m_searchState != ResetRequested && s_projectIdExpr.match(m_currentSearchTerm).hasMatch()) {
|
||||||
auto projectId = m_currentSearchTerm.mid(1);
|
auto projectId = m_currentSearchTerm.mid(1);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue