fix updater from bintray api issue

This commit is contained in:
Zach H 2016-05-07 21:28:45 -04:00
parent ff1091ac02
commit d46cdd8044
4 changed files with 17 additions and 13 deletions

View file

@ -85,6 +85,7 @@ void DlgUpdate::gotoDownloadPage() {
void DlgUpdate::downloadUpdate() {
setLabel("Downloading update...");
enableOkButton(false);
enableUpdateButton(false);
uDownloader->beginDownload(updateUrl);
}
@ -127,7 +128,8 @@ void DlgUpdate::finishedUpdateCheck(bool needToUpdate, bool isCompatible, QVaria
if (reply == QMessageBox::Yes)
downloadUpdate();
}
else {
else
{
QMessageBox::information(this, "Cockatrice Update",
tr("Your version of Cockatrice is out of date, but there are no packages"
" available for your operating system. You may have to use a developer build or build from source"
@ -146,6 +148,10 @@ void DlgUpdate::enableUpdateButton(bool enable) {
manualDownload->setEnabled(enable);
}
void DlgUpdate::enableOkButton(bool enable) {
ok->setEnabled(enable);
}
void DlgUpdate::setLabel(QString newText) {
text->setText(newText);
}