From 10f7e25f7d512e5ef87eeaec5e7ea138899479c2 Mon Sep 17 00:00:00 2001 From: Ty Lamontagne Date: Tue, 10 Oct 2023 18:14:23 -0400 Subject: [PATCH] Updater: Fetch best asset size for download size notification --- pcsx2-qt/AutoUpdaterDialog.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pcsx2-qt/AutoUpdaterDialog.cpp b/pcsx2-qt/AutoUpdaterDialog.cpp index 20b8229c6f1098..07c5b6a2dd1cbd 100644 --- a/pcsx2-qt/AutoUpdaterDialog.cpp +++ b/pcsx2-qt/AutoUpdaterDialog.cpp @@ -283,6 +283,7 @@ void AutoUpdaterDialog::getLatestReleaseComplete(QNetworkReply* reply) m_latest_version = data_object["version"].toString(); m_latest_version_timestamp = QDateTime::fromString(data_object["publishedAt"].toString(), QStringLiteral("yyyy-MM-ddThh:mm:ss.zzzZ")); m_download_url = best_asset["url"].toString(); + m_download_size = best_asset["size"].toInt(); found_update_info = true; } } @@ -346,8 +347,6 @@ void AutoUpdaterDialog::getChangesComplete(QNetworkReply* reply) QString changes_html = tr("

Changes:

"); changes_html += QStringLiteral("