Remove duplicate reset calibration button (#132)
This commit is contained in:
parent
7e4078b6e2
commit
c01206d040
@ -300,20 +300,6 @@ DevicePanel::DevicePanel(SettingsWindow *parent) : ListWidget(parent) {
|
||||
connect(dcamBtn, &ButtonControl::clicked, [=]() { emit showDriverView(); });
|
||||
addItem(dcamBtn);
|
||||
|
||||
auto resetCalibBtn = new ButtonControl(tr("Reset Calibration"), tr("RESET"), "");
|
||||
connect(resetCalibBtn, &ButtonControl::showDescriptionEvent, this, &DevicePanel::updateCalibDescription);
|
||||
connect(resetCalibBtn, &ButtonControl::clicked, [&]() {
|
||||
if (ConfirmationDialog::confirm(tr("Are you sure you want to reset calibration?"), tr("Reset"), this)) {
|
||||
params.remove("CalibrationParams");
|
||||
params.remove("LiveTorqueParameters");
|
||||
emit parent->closeSettings();
|
||||
QTimer::singleShot(1000, []() {
|
||||
Params().putInt("SoftRestartTriggered", 1);
|
||||
});
|
||||
}
|
||||
});
|
||||
addItem(resetCalibBtn);
|
||||
|
||||
auto retrainingBtn = new ButtonControl(tr("Review Training Guide"), tr("REVIEW"), tr("Review the rules, features, and limitations of openpilot"));
|
||||
connect(retrainingBtn, &ButtonControl::clicked, [=]() {
|
||||
if (ConfirmationDialog::confirm(tr("Are you sure you want to review the training guide?"), tr("Review"), this)) {
|
||||
@ -353,7 +339,6 @@ DevicePanel::DevicePanel(SettingsWindow *parent) : ListWidget(parent) {
|
||||
btn->setEnabled(offroad);
|
||||
}
|
||||
}
|
||||
resetCalibBtn->setEnabled(true);
|
||||
translateBtn->setEnabled(true);
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user