mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-22 05:05:38 +08:00
Ref T78, setting and dialog "do not show again"
Applies to automatic update info check
This commit is contained in:
@@ -26,8 +26,10 @@ namespace BlackGui
|
||||
{
|
||||
ui->setupUi(this);
|
||||
ui->bb_DownloadInstallDialog->button(QDialogButtonBox::Ok)->setText(" Download and install ");
|
||||
ui->cb_DontShowAgain->setChecked(!m_setting.get());
|
||||
this->selectionChanged();
|
||||
connect(ui->comp_DistributionInfo, &CDistributionInfoComponent::selectionChanged, this, &CDownloadAndInstallDialog::selectionChanged);
|
||||
connect(ui->cb_DontShowAgain, &QCheckBox::toggled, this, &CDownloadAndInstallDialog::onDontShowAgain);
|
||||
}
|
||||
|
||||
CDownloadAndInstallDialog::~CDownloadAndInstallDialog()
|
||||
@@ -53,6 +55,11 @@ namespace BlackGui
|
||||
return QDialog::Rejected;
|
||||
}
|
||||
|
||||
void CDownloadAndInstallDialog::onDontShowAgain(bool dontShowAgain)
|
||||
{
|
||||
m_setting.setAndSave(!dontShowAgain);
|
||||
}
|
||||
|
||||
void CDownloadAndInstallDialog::selectionChanged()
|
||||
{
|
||||
const bool nv = ui->comp_DistributionInfo->isNewVersionAvailable();
|
||||
|
||||
Reference in New Issue
Block a user