mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-28 22:51:03 -07:00
Add hint on version downloading (#5663)
This commit is contained in:
@@ -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"),
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user