From 4d45f5b4bcfaf475ed0cbd8a72df19c21d2a177e Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Sat, 16 Sep 2023 21:28:22 -0400 Subject: [PATCH] Modernize GameInstaller --- launcher/src/gameinstaller.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/launcher/src/gameinstaller.cpp b/launcher/src/gameinstaller.cpp index c676880..21d64aa 100644 --- a/launcher/src/gameinstaller.cpp +++ b/launcher/src/gameinstaller.cpp @@ -3,6 +3,7 @@ #include "gameinstaller.h" +#include #include #include #include @@ -30,7 +31,7 @@ void GameInstaller::installGame() auto reply = m_launcher.mgr->get(request); QObject::connect(reply, &QNetworkReply::finished, [this, reply, installDirectory] { if (reply->error() != QNetworkReply::NetworkError::NoError) { - Q_EMIT error(QStringLiteral("An error has occurred when downloading the installer.\n\n%1").arg(reply->errorString())); + Q_EMIT error(i18n("An error has occurred when downloading the installer.\n\n%1", reply->errorString())); return; }