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
2 changed files with 4 additions and 4 deletions
+3 -3
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"),
+1 -1
View File
@@ -21,7 +21,7 @@ public:
private slots:
void finishedUpdateCheck(bool needToUpdate, bool isCompatible, Release *release);
void gotoDownloadPage();
void downloadUpdate();
void downloadUpdate(const QString &releaseName);
void cancelDownload();
void updateCheckError(const QString &errorString);
void downloadSuccessful(const QUrl &filepath);