mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-05-02 07:05:38 +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(new Ui::CSettingsAdvancedComponent)
|
||||||
{
|
{
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
ui->m_crashDumpsUpload->setChecked(m_crashDumpUploadEnabled.getThreadLocal());
|
ui->cb_crashDumpsUpload->setChecked(m_crashDumpUploadEnabled.getThreadLocal());
|
||||||
connect(ui->m_crashDumpsUpload, &QCheckBox::stateChanged, this, &CSettingsAdvancedComponent::crashDumpUploadEnabledChanged);
|
connect(ui->cb_crashDumpsUpload, &QCheckBox::stateChanged, this, &CSettingsAdvancedComponent::crashDumpUploadEnabledChanged);
|
||||||
}
|
}
|
||||||
|
|
||||||
CSettingsAdvancedComponent::~CSettingsAdvancedComponent()
|
CSettingsAdvancedComponent::~CSettingsAdvancedComponent()
|
||||||
{
|
{ }
|
||||||
}
|
|
||||||
|
|
||||||
void CSettingsAdvancedComponent::crashDumpUploadEnabledChanged(int state)
|
void CSettingsAdvancedComponent::crashDumpUploadEnabledChanged(int state)
|
||||||
{
|
{
|
||||||
auto text = ui->m_crashDumpsUpload->text();
|
auto text = ui->cb_crashDumpsUpload->text();
|
||||||
if (!text.endsWith("(restart needed)"))
|
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);
|
m_crashDumpUploadEnabled.set(state == Qt::Checked);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,13 +15,13 @@
|
|||||||
</property>
|
</property>
|
||||||
<layout class="QGridLayout" name="gl_SettingsAdvanced">
|
<layout class="QGridLayout" name="gl_SettingsAdvanced">
|
||||||
<item row="0" column="0">
|
<item row="0" column="0">
|
||||||
<widget class="QCheckBox" name="m_crashDumpsUpload">
|
<widget class="QCheckBox" name="cb_crashDumpsUpload">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Upload crash dumps</string>
|
<string>Upload crash dumps</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="0">
|
<item row="2" column="0">
|
||||||
<spacer name="vs_SettingsAdvanced">
|
<spacer name="vs_SettingsAdvanced">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
<enum>Qt::Vertical</enum>
|
<enum>Qt::Vertical</enum>
|
||||||
@@ -34,6 +34,16 @@
|
|||||||
</property>
|
</property>
|
||||||
</spacer>
|
</spacer>
|
||||||
</item>
|
</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>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
<layoutdefault spacing="6" margin="11"/>
|
<layoutdefault spacing="6" margin="11"/>
|
||||||
|
|||||||
Reference in New Issue
Block a user