|
|
@ -194,6 +194,9 @@ DevicePanel::DevicePanel(SettingsWindow *parent) : ListWidget(parent) { |
|
|
|
if (ConfirmationDialog::confirm(tr("Are you sure you want to reset calibration?"), tr("Reset"), this)) { |
|
|
|
if (ConfirmationDialog::confirm(tr("Are you sure you want to reset calibration?"), tr("Reset"), this)) { |
|
|
|
params.remove("CalibrationParams"); |
|
|
|
params.remove("CalibrationParams"); |
|
|
|
params.remove("LiveTorqueParameters"); |
|
|
|
params.remove("LiveTorqueParameters"); |
|
|
|
|
|
|
|
params.remove("LiveParameters"); |
|
|
|
|
|
|
|
params.remove("LiveParametersV2"); |
|
|
|
|
|
|
|
params.remove("LiveDelay"); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
addItem(resetCalibBtn); |
|
|
|
addItem(resetCalibBtn); |
|
|
@ -326,7 +329,7 @@ void SettingsWindow::setCurrentPanel(int index, const QString ¶m) { |
|
|
|
if (param.endsWith("Panel")) { |
|
|
|
if (param.endsWith("Panel")) { |
|
|
|
QString panelName = param; |
|
|
|
QString panelName = param; |
|
|
|
panelName.chop(5); // Remove "Panel" suffix
|
|
|
|
panelName.chop(5); // Remove "Panel" suffix
|
|
|
|
|
|
|
|
|
|
|
|
// Find the panel by name
|
|
|
|
// Find the panel by name
|
|
|
|
for (int i = 0; i < nav_btns->buttons().size(); i++) { |
|
|
|
for (int i = 0; i < nav_btns->buttons().size(); i++) { |
|
|
|
if (nav_btns->buttons()[i]->text() == tr(panelName.toStdString().c_str())) { |
|
|
|
if (nav_btns->buttons()[i]->text() == tr(panelName.toStdString().c_str())) { |
|
|
@ -338,7 +341,7 @@ void SettingsWindow::setCurrentPanel(int index, const QString ¶m) { |
|
|
|
emit expandToggleDescription(param); |
|
|
|
emit expandToggleDescription(param); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
panel_widget->setCurrentIndex(index); |
|
|
|
panel_widget->setCurrentIndex(index); |
|
|
|
nav_btns->buttons()[index]->setChecked(true); |
|
|
|
nav_btns->buttons()[index]->setChecked(true); |
|
|
|
} |
|
|
|
} |
|
|
|