mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 07:15:35 +08:00
Ref T271, Ref T213 info about crashreport
This commit is contained in:
@@ -21,20 +21,19 @@ namespace BlackGui
|
||||
ui(new Ui::CSettingsAdvancedComponent)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
ui->m_crashDumpsUpload->setChecked(m_crashDumpUploadEnabled.getThreadLocal());
|
||||
connect(ui->m_crashDumpsUpload, &QCheckBox::stateChanged, this, &CSettingsAdvancedComponent::crashDumpUploadEnabledChanged);
|
||||
ui->cb_crashDumpsUpload->setChecked(m_crashDumpUploadEnabled.getThreadLocal());
|
||||
connect(ui->cb_crashDumpsUpload, &QCheckBox::stateChanged, this, &CSettingsAdvancedComponent::crashDumpUploadEnabledChanged);
|
||||
}
|
||||
|
||||
CSettingsAdvancedComponent::~CSettingsAdvancedComponent()
|
||||
{
|
||||
}
|
||||
{ }
|
||||
|
||||
void CSettingsAdvancedComponent::crashDumpUploadEnabledChanged(int state)
|
||||
{
|
||||
auto text = ui->m_crashDumpsUpload->text();
|
||||
auto text = ui->cb_crashDumpsUpload->text();
|
||||
if (!text.endsWith("(restart needed)"))
|
||||
{
|
||||
ui->m_crashDumpsUpload->setText(ui->m_crashDumpsUpload->text() + " (restart needed)");
|
||||
ui->cb_crashDumpsUpload->setText(ui->cb_crashDumpsUpload->text() + " (restart needed)");
|
||||
}
|
||||
m_crashDumpUploadEnabled.set(state == Qt::Checked);
|
||||
}
|
||||
|
||||
@@ -15,13 +15,13 @@
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gl_SettingsAdvanced">
|
||||
<item row="0" column="0">
|
||||
<widget class="QCheckBox" name="m_crashDumpsUpload">
|
||||
<widget class="QCheckBox" name="cb_crashDumpsUpload">
|
||||
<property name="text">
|
||||
<string>Upload crash dumps</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<item row="2" column="0">
|
||||
<spacer name="vs_SettingsAdvanced">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Vertical</enum>
|
||||
@@ -34,6 +34,16 @@
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="lbl_CrashDumpInfo">
|
||||
<property name="text">
|
||||
<string>Info: By enabling "crash dumps" you will allow us to send information about your system, IP address and swift installation to our crash dump server. We will use these information to improve swift and then delete them. We appreciate if you help us by sending these information.</string>
|
||||
</property>
|
||||
<property name="wordWrap">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<layoutdefault spacing="6" margin="11"/>
|
||||
|
||||
Reference in New Issue
Block a user