Skip to content

Commit

Permalink
Updater: Fetch best asset size for download size notification
Browse files Browse the repository at this point in the history
  • Loading branch information
F0bes committed Oct 10, 2023
1 parent 312a583 commit 10f7e25
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pcsx2-qt/AutoUpdaterDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down Expand Up @@ -346,8 +347,6 @@ void AutoUpdaterDialog::getChangesComplete(QNetworkReply* reply)
QString changes_html = tr("<h2>Changes:</h2>");
changes_html += QStringLiteral("<ul>");

m_download_size = doc_object["size"].toInt();

const QJsonArray commits(doc_object["commits"].toArray());
bool update_will_break_save_states = false;
bool update_increases_settings_version = false;
Expand Down

0 comments on commit 10f7e25

Please sign in to comment.