6 #include <QDesktopServices>
9 #include "ui_updateinfodialog.h"
13 using namespace swift::misc::db;
21 ui->cb_DontShowAgain->setChecked(!m_setting.
get());
22 this->selectionChanged();
24 &CUpdateInfoDialog::selectionChanged);
32 const bool newVersion = ui->comp_UpdateInfo->isNewPilotClientVersionAvailable();
40 if (!ui->comp_UpdateInfo->isNewPilotClientVersionAvailable()) {
return QDialog::Rejected; }
41 const CDistribution distribution = ui->comp_UpdateInfo->getCurrentDistribution();
44 ui->comp_UpdateInfo->triggerDownload();
48 void CUpdateInfoDialog::onDontShowAgain(
bool dontShowAgain) { m_setting.
setAndSave(!dontShowAgain); }
50 void CUpdateInfoDialog::selectionChanged()
52 const bool nv = ui->comp_UpdateInfo->isNewPilotClientVersionAvailable();
void selectionChanged()
New platfrom or channel.
Download and install swift.
virtual ~CUpdateInfoDialog()
Destructor.
bool isNewVersionAvailable() const
A new version existing?
CStatusMessage setAndSave(const T &value, qint64 timestamp=0)
Write and save in the same step. Must be called from the thread in which the owner lives.
T get() const
Get a copy of the current value.
Distributions for channel.
bool hasDownloadUrl() const
Has a download URL?
High level reusable GUI components.
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)