Add hint on version downloading (#5663)

This commit is contained in:
lilyhuang-github 2025-02-27 23:34:32 -05:00 committed by GitHub
parent e271e6ecf8
commit 7ff43f15fc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View file

@ -86,9 +86,9 @@ void DlgUpdate::gotoDownloadPage()
QDesktopServices::openUrl(SettingsCache::instance().getUpdateReleaseChannel()->getManualDownloadUrl());
}
void DlgUpdate::downloadUpdate()
void DlgUpdate::downloadUpdate(const QString &releaseName)
{
setLabel(tr("Downloading update..."));
setLabel(tr("Downloading update: %1").arg(releaseName));
addStopDownloadAndRemoveOthers(true); // Will remove all other buttons
uDownloader->beginDownload(updateUrl);
}
@ -157,7 +157,7 @@ void DlgUpdate::finishedUpdateCheck(bool needToUpdate, bool isCompatible, Releas
QMessageBox::Yes | QMessageBox::No);
if (reply == QMessageBox::Yes)
downloadUpdate();
downloadUpdate(release->getName());
} else {
QMessageBox::information(
this, tr("Update Available"),