mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 08:28:21 +08:00
Ref T213, Ref T271 opt-in for crash dumps
This commit is contained in:
@@ -22,6 +22,9 @@ namespace BlackGui
|
||||
ui(new Ui::CLegalInfoComponent)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
const bool cd = m_crashDumpUploadEnabled.get();
|
||||
ui->cb_CrashDumps->setChecked(cd);
|
||||
connect(ui->cb_CrashDumps, &QCheckBox::toggled, this, &CLegalInfoComponent::onAllowCrashDumps);
|
||||
}
|
||||
|
||||
CLegalInfoComponent::~CLegalInfoComponent()
|
||||
@@ -40,6 +43,11 @@ namespace BlackGui
|
||||
return false;
|
||||
}
|
||||
|
||||
void CLegalInfoComponent::onAllowCrashDumps(bool checked)
|
||||
{
|
||||
m_crashDumpUploadEnabled.setAndSave(checked);
|
||||
}
|
||||
|
||||
bool CLegalInfoWizardPage::validatePage()
|
||||
{
|
||||
return m_legalInfo && m_legalInfo->validateAgreement();
|
||||
|
||||
Reference in New Issue
Block a user