6#include <QDesktopServices>
9#include "ui_updateinfodialog.h"
13using 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();
43 if (!ui->comp_UpdateInfo->isNewPilotClientVersionAvailable())
47 const CDistribution distribution = ui->comp_UpdateInfo->getCurrentDistribution();
53 ui->comp_UpdateInfo->triggerDownload();
57 void CUpdateInfoDialog::onDontShowAgain(
bool dontShowAgain) { m_setting.
setAndSave(!dontShowAgain); }
59 void CUpdateInfoDialog::selectionChanged()
61 const bool nv = ui->comp_UpdateInfo->isNewPilotClientVersionAvailable();
void selectionChanged()
New platfrom or channel.
~CUpdateInfoDialog()
Destructor.
CUpdateInfoDialog(QWidget *parent=nullptr)
Constructor.
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.
Distributions for channel.
bool hasDownloadUrl() const
Has a download URL?
High level reusable GUI components.
QDialog(QWidget *parent, Qt::WindowFlags f)
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
QObject * parent() const const