From 86597ab2da37050b63673ca4d73c58b33f3acd03 Mon Sep 17 00:00:00 2001 From: kamfretoz <14798312+kamfretoz@users.noreply.github.com> Date: Sun, 15 Oct 2023 14:09:48 +0700 Subject: [PATCH] Qt/Updater: Move download size indicator to better placement --- pcsx2-qt/AutoUpdaterDialog.cpp | 4 +--- pcsx2-qt/AutoUpdaterDialog.ui | 7 +++++++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/pcsx2-qt/AutoUpdaterDialog.cpp b/pcsx2-qt/AutoUpdaterDialog.cpp index 209c4650f7..98ec18c00f 100644 --- a/pcsx2-qt/AutoUpdaterDialog.cpp +++ b/pcsx2-qt/AutoUpdaterDialog.cpp @@ -391,9 +391,6 @@ void AutoUpdaterDialog::getChangesComplete(QNetworkReply* reply) tr("

Settings Warning

Installing this update will reset your program configuration. Please note " "that you will have to reconfigure your settings after this update.

")); } - changes_html += tr("

Installing this update will download %1 MB through your internet connection.

") - .arg(static_cast(m_download_size) / 1048576.0, 0, 'f', 2); - m_ui.updateNotes->setText(changes_html); } else @@ -522,6 +519,7 @@ void AutoUpdaterDialog::checkIfUpdateNeeded() m_ui.currentVersion->setText(tr("Current Version: %1 (%2)").arg(getCurrentVersion()).arg(getCurrentVersionDate())); m_ui.newVersion->setText(tr("New Version: %1 (%2)").arg(m_latest_version).arg(m_latest_version_timestamp.toString())); + m_ui.downloadSize->setText(tr("Download Size: %1 MB").arg(static_cast(m_download_size) / 1048576.0, 0, 'f', 2)); m_ui.updateNotes->setText(tr("Loading...")); queueGetChanges(); exec(); diff --git a/pcsx2-qt/AutoUpdaterDialog.ui b/pcsx2-qt/AutoUpdaterDialog.ui index 9683c2efc4..0e685c31d3 100644 --- a/pcsx2-qt/AutoUpdaterDialog.ui +++ b/pcsx2-qt/AutoUpdaterDialog.ui @@ -76,6 +76,13 @@ + + + + Download Size: + + +