mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-21 12:55:31 +08:00
refactor: Remove pushy note to enable crash dumps
This commit is contained in:
@@ -31,12 +31,6 @@ namespace BlackGui::Components
|
|||||||
ui->cb_Agree->setChecked(CBuildConfig::isLocalDeveloperDebugBuild());
|
ui->cb_Agree->setChecked(CBuildConfig::isLocalDeveloperDebugBuild());
|
||||||
|
|
||||||
connect(ui->cb_CrashDumps, &QCheckBox::toggled, this, &CLegalInfoComponent::onAllowCrashDumps);
|
connect(ui->cb_CrashDumps, &QCheckBox::toggled, this, &CLegalInfoComponent::onAllowCrashDumps);
|
||||||
|
|
||||||
QPointer<CLegalInfoComponent> myself(this);
|
|
||||||
QTimer::singleShot(5000, this, [=] {
|
|
||||||
if (!sApp || sApp->isShuttingDown() || !myself) { return; }
|
|
||||||
myself->showCrashDumpHint();
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
CLegalInfoComponent::~CLegalInfoComponent()
|
CLegalInfoComponent::~CLegalInfoComponent()
|
||||||
@@ -60,13 +54,6 @@ namespace BlackGui::Components
|
|||||||
CLogMessage::preformatted(m_crashDumpUploadEnabled.setAndSave(checked));
|
CLogMessage::preformatted(m_crashDumpUploadEnabled.setAndSave(checked));
|
||||||
}
|
}
|
||||||
|
|
||||||
void CLegalInfoComponent::showCrashDumpHint()
|
|
||||||
{
|
|
||||||
if (ui->cb_CrashDumps->isChecked()) { return; }
|
|
||||||
const CStatusMessage m = CStatusMessage(this).info(u"We recommend to enable crash dump uploads");
|
|
||||||
this->showOverlayHTMLMessage(m, 7500);
|
|
||||||
}
|
|
||||||
|
|
||||||
void CLegalInfoComponent::setChecklistInfo()
|
void CLegalInfoComponent::setChecklistInfo()
|
||||||
{
|
{
|
||||||
if (!sGui) { return; }
|
if (!sGui) { return; }
|
||||||
|
|||||||
@@ -42,9 +42,6 @@ namespace BlackGui::Components
|
|||||||
//! Allow crash dumps
|
//! Allow crash dumps
|
||||||
void onAllowCrashDumps(bool checked);
|
void onAllowCrashDumps(bool checked);
|
||||||
|
|
||||||
//! Crashdum hint
|
|
||||||
void showCrashDumpHint();
|
|
||||||
|
|
||||||
//! Set the checklist info
|
//! Set the checklist info
|
||||||
void setChecklistInfo();
|
void setChecklistInfo();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user