mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-10 00:04:48 -07:00
fix updater from bintray api issue
This commit is contained in:
parent
ff1091ac02
commit
d46cdd8044
4 changed files with 17 additions and 13 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue