From bce767f4426c0ff7a5e1da76dc38eaaea3cc5a33 Mon Sep 17 00:00:00 2001 From: infiniteCable2 Date: Mon, 29 Sep 2025 17:24:44 +0200 Subject: [PATCH] Update settings.cc --- selfdrive/ui/qt/offroad/settings.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/selfdrive/ui/qt/offroad/settings.cc b/selfdrive/ui/qt/offroad/settings.cc index 3f85d2dc4..380fd13a0 100644 --- a/selfdrive/ui/qt/offroad/settings.cc +++ b/selfdrive/ui/qt/offroad/settings.cc @@ -117,6 +117,9 @@ InfiniteCableTogglesPanel::InfiniteCableTogglesPanel(SettingsWindow *parent) : L steer_offset_control->showDescription(); addItem(steer_offset_control); + bool enable_angle_offset = params.getBool("EnableAngleOffset"); + steer_offset_control->setVisible(enable_angle_offset); + QObject::connect(steer_offset_control, &OptionControlSP::updateLabels, [=]() { float val = QString::fromStdString(params.get("AngleOffsetDegree")).toFloat(); steer_offset_control->setLabel(QString::number(val, 'f', 1) + "°");