Reduce spaghettiness
This commit is contained in:
parent
affc2521aa
commit
6d22794cf9
@ -177,7 +177,13 @@ void ListModel::performPaginatedSearch()
|
||||
"sort=%3&"
|
||||
"%4"
|
||||
"gameVersion=%5"
|
||||
).arg(nextSearchOffset).arg(currentSearchTerm).arg(sorts[currentSort]).arg(hasFabric ? "modLoaderType=4&" : "").arg(mcVersion);
|
||||
)
|
||||
.arg(nextSearchOffset)
|
||||
.arg(currentSearchTerm)
|
||||
.arg(sorts[currentSort])
|
||||
.arg(hasFabric ? "modLoaderType=4&" : "")
|
||||
.arg(mcVersion);
|
||||
|
||||
netJob->addNetAction(Net::Download::makeByteArray(QUrl(searchUrl), &response));
|
||||
jobPtr = netJob;
|
||||
jobPtr->start();
|
||||
|
@ -172,7 +172,13 @@ void ListModel::performPaginatedSearch()
|
||||
"query=%2&"
|
||||
"index=%3&"
|
||||
"filters=categories=\"%4\" AND versions=\"%5\""
|
||||
).arg(nextSearchOffset).arg(currentSearchTerm).arg(sorts[currentSort]).arg(hasFabric ? "fabric" : "forge").arg(mcVersion);
|
||||
)
|
||||
.arg(nextSearchOffset)
|
||||
.arg(currentSearchTerm)
|
||||
.arg(sorts[currentSort])
|
||||
.arg(hasFabric ? "fabric" : "forge")
|
||||
.arg(mcVersion);
|
||||
|
||||
netJob->addNetAction(Net::Download::makeByteArray(QUrl(searchUrl), &response));
|
||||
jobPtr = netJob;
|
||||
jobPtr->start();
|
||||
|
Loading…
Reference in New Issue
Block a user