mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
Add hint on version downloading (#5663)
This commit is contained in:
parent
e271e6ecf8
commit
7ff43f15fc
2 changed files with 4 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue