1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-04-21 20:27:45 +00:00

Misc move printRequest

This commit is contained in:
Joshua Goins 2023-12-21 21:06:33 -05:00
parent 6be8c5ade4
commit 96f829207a

View file

@ -29,9 +29,9 @@ void GameInstaller::installGame()
const QDir installDirectory = m_profile.gamePath(); const QDir installDirectory = m_profile.gamePath();
const QNetworkRequest request = QNetworkRequest(QUrl(installerUrl)); const QNetworkRequest request = QNetworkRequest(QUrl(installerUrl));
Utility::printRequest(QStringLiteral("GET"), request);
auto reply = m_launcher.mgr()->get(request); auto reply = m_launcher.mgr()->get(request);
Utility::printRequest(QStringLiteral("GET"), request);
QObject::connect(reply, &QNetworkReply::finished, [this, reply, installDirectory] { QObject::connect(reply, &QNetworkReply::finished, [this, reply, installDirectory] {
if (reply->error() != QNetworkReply::NetworkError::NoError) { if (reply->error() != QNetworkReply::NetworkError::NoError) {