torqued: reset LiveTorqueParameters on calibration reset (#27737)

* torqued: reset LiveTorqueParameters on calibration reset

* gotta have this
old-commit-hash: 8e3ed8f10b5e9eae52b1374a81d46dcd022e3598
This commit is contained in:
Jason Wen
2023-03-29 17:30:27 -04:00
committed by GitHub
parent 467040bbd0
commit fe5fee6931
+1
View File
@@ -193,6 +193,7 @@ DevicePanel::DevicePanel(SettingsWindow *parent) : ListWidget(parent) {
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");
}
});
addItem(resetCalibBtn);