mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 14:55:36 +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());
|
||||
|
||||
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()
|
||||
@@ -60,13 +54,6 @@ namespace BlackGui::Components
|
||||
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()
|
||||
{
|
||||
if (!sGui) { return; }
|
||||
|
||||
@@ -42,9 +42,6 @@ namespace BlackGui::Components
|
||||
//! Allow crash dumps
|
||||
void onAllowCrashDumps(bool checked);
|
||||
|
||||
//! Crashdum hint
|
||||
void showCrashDumpHint();
|
||||
|
||||
//! Set the checklist info
|
||||
void setChecklistInfo();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user