mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2025-12-31 07:02:22 -08:00
Merge pull request #1776 from ctrlaltca/button_fix
Updater: Disable download button when download starts
This commit is contained in:
@@ -85,6 +85,7 @@ void DlgUpdate::gotoDownloadPage() {
|
||||
|
||||
void DlgUpdate::downloadUpdate() {
|
||||
setLabel("Downloading update...");
|
||||
enableUpdateButton(false);
|
||||
uDownloader->beginDownload(updateUrl);
|
||||
}
|
||||
|
||||
@@ -156,6 +157,7 @@ void DlgUpdate::updateCheckError(QString errorString) {
|
||||
|
||||
void DlgUpdate::downloadError(QString errorString) {
|
||||
setLabel("Error");
|
||||
enableUpdateButton(true);
|
||||
QMessageBox::critical(this, tr("Update Error"), "An error occurred while downloading an update: " + errorString);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user