mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-13 01:24:46 -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());
|
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
|
addStopDownloadAndRemoveOthers(true); // Will remove all other buttons
|
||||||
uDownloader->beginDownload(updateUrl);
|
uDownloader->beginDownload(updateUrl);
|
||||||
}
|
}
|
||||||
|
|
@ -157,7 +157,7 @@ void DlgUpdate::finishedUpdateCheck(bool needToUpdate, bool isCompatible, Releas
|
||||||
QMessageBox::Yes | QMessageBox::No);
|
QMessageBox::Yes | QMessageBox::No);
|
||||||
|
|
||||||
if (reply == QMessageBox::Yes)
|
if (reply == QMessageBox::Yes)
|
||||||
downloadUpdate();
|
downloadUpdate(release->getName());
|
||||||
} else {
|
} else {
|
||||||
QMessageBox::information(
|
QMessageBox::information(
|
||||||
this, tr("Update Available"),
|
this, tr("Update Available"),
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ public:
|
||||||
private slots:
|
private slots:
|
||||||
void finishedUpdateCheck(bool needToUpdate, bool isCompatible, Release *release);
|
void finishedUpdateCheck(bool needToUpdate, bool isCompatible, Release *release);
|
||||||
void gotoDownloadPage();
|
void gotoDownloadPage();
|
||||||
void downloadUpdate();
|
void downloadUpdate(const QString &releaseName);
|
||||||
void cancelDownload();
|
void cancelDownload();
|
||||||
void updateCheckError(const QString &errorString);
|
void updateCheckError(const QString &errorString);
|
||||||
void downloadSuccessful(const QUrl &filepath);
|
void downloadSuccessful(const QUrl &filepath);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue