change: switch to modrinth production servers
This commit is contained in:
parent
e7bb3b2776
commit
e92b7bd25e
@ -105,7 +105,7 @@ void ModpackListModel::performPaginatedSearch()
|
|||||||
{
|
{
|
||||||
// TODO: Move to standalone API
|
// TODO: Move to standalone API
|
||||||
NetJob* netJob = new NetJob("Modrinth::SearchModpack", APPLICATION->network());
|
NetJob* netJob = new NetJob("Modrinth::SearchModpack", APPLICATION->network());
|
||||||
auto searchAllUrl = QString(BuildConfig.MODRINTH_STAGING_URL +
|
auto searchAllUrl = QString(BuildConfig.MODRINTH_PROD_URL +
|
||||||
"/search?"
|
"/search?"
|
||||||
"offset=%1&"
|
"offset=%1&"
|
||||||
"limit=20&"
|
"limit=20&"
|
||||||
|
@ -123,7 +123,7 @@ void ModrinthPage::onSelectionChanged(QModelIndex first, QModelIndex second)
|
|||||||
|
|
||||||
QString id = current.id;
|
QString id = current.id;
|
||||||
|
|
||||||
netJob->addNetAction(Net::Download::makeByteArray(QString("%1/project/%2").arg(BuildConfig.MODRINTH_STAGING_URL, id), response));
|
netJob->addNetAction(Net::Download::makeByteArray(QString("%1/project/%2").arg(BuildConfig.MODRINTH_PROD_URL, id), response));
|
||||||
|
|
||||||
QObject::connect(netJob, &NetJob::succeeded, this, [this, response, id] {
|
QObject::connect(netJob, &NetJob::succeeded, this, [this, response, id] {
|
||||||
if (id != current.id) {
|
if (id != current.id) {
|
||||||
@ -168,7 +168,7 @@ void ModrinthPage::onSelectionChanged(QModelIndex first, QModelIndex second)
|
|||||||
QString id = current.id;
|
QString id = current.id;
|
||||||
|
|
||||||
netJob->addNetAction(
|
netJob->addNetAction(
|
||||||
Net::Download::makeByteArray(QString("%1/project/%2/version").arg(BuildConfig.MODRINTH_STAGING_URL, id), response));
|
Net::Download::makeByteArray(QString("%1/project/%2/version").arg(BuildConfig.MODRINTH_PROD_URL, id), response));
|
||||||
|
|
||||||
QObject::connect(netJob, &NetJob::succeeded, this, [this, response, id] {
|
QObject::connect(netJob, &NetJob::succeeded, this, [this, response, id] {
|
||||||
if (id != current.id) {
|
if (id != current.id) {
|
||||||
|
Loading…
Reference in New Issue
Block a user