feat: use build config url instead of hadcoded one

Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
Trial97 2025-06-02 19:28:52 +03:00
parent df90d0cb0d
commit 9991501832
No known key found for this signature in database
GPG key ID: 55EF5DA53DB36318
3 changed files with 16 additions and 13 deletions

View file

@ -174,7 +174,7 @@ void FlamePage::onSelectionChanged(QModelIndex curr, [[maybe_unused]] QModelInde
auto response = std::make_shared<QByteArray>();
int addonId = current.addonId;
netJob->addNetAction(
Net::ApiDownload::makeByteArray(QString("https://api.curseforge.com/v1/mods/%1/files").arg(addonId), response));
Net::ApiDownload::makeByteArray(QString(BuildConfig.FLAME_BASE_URL + "/mods/%1/files").arg(addonId), response));
QObject::connect(netJob, &NetJob::succeeded, this, [this, response, addonId, curr] {
if (addonId != current.addonId) {