Updater dialog changes (#2504)
This commit is contained in:
parent
2c3b85aed3
commit
141e6df50a
1 changed files with 6 additions and 2 deletions
|
@ -8,6 +8,7 @@
|
|||
#include <QLabel>
|
||||
#include <QProgressBar>
|
||||
#include <QApplication>
|
||||
#include <version_string.h>
|
||||
|
||||
#include "dlg_update.h"
|
||||
#include "releasechannel.h"
|
||||
|
@ -18,12 +19,14 @@ DlgUpdate::DlgUpdate(QWidget *parent) : QDialog(parent) {
|
|||
|
||||
//Handle layout
|
||||
statusLabel = new QLabel(this);
|
||||
statusLabel->setSizePolicy(QSizePolicy::Ignored, QSizePolicy::Fixed);
|
||||
statusLabel->setWordWrap(true);
|
||||
descriptionLabel = new QLabel(tr("Current release channel:") + " " + tr(settingsCache->getUpdateReleaseChannel()->getName().toUtf8()), this);
|
||||
progress = new QProgressBar(this);
|
||||
|
||||
QDialogButtonBox *buttonBox = new QDialogButtonBox(this);
|
||||
ok = new QPushButton("Ok", this);
|
||||
manualDownload = new QPushButton(tr("Update Anyway"), this);
|
||||
ok = new QPushButton("Close", this);
|
||||
manualDownload = new QPushButton(tr("Reinstall"), this);
|
||||
enableUpdateButton(false); //Unless we know there's an update available, you can't install
|
||||
gotoDownload = new QPushButton(tr("Open Download Page"), this);
|
||||
buttonBox->addButton(manualDownload, QDialogButtonBox::ActionRole);
|
||||
|
@ -108,6 +111,7 @@ void DlgUpdate::finishedUpdateCheck(bool needToUpdate, bool isCompatible, Releas
|
|||
//If there's no need to update, tell them that. However we still allow them to run the
|
||||
//downloader themselves if there's a compatible build
|
||||
QMessageBox::information(this, tr("Cockatrice Update"), tr("Your version of Cockatrice is up to date."));
|
||||
setLabel(tr("You are already running the latest %1 release - %2").arg(tr(settingsCache->getUpdateReleaseChannel()->getName().toUtf8())).arg(VERSION_STRING));
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue