From 22ca3430505ff2d7427e51c3b2380080809ca932 Mon Sep 17 00:00:00 2001 From: royjr Date: Wed, 8 Oct 2025 01:07:53 -0400 Subject: [PATCH] fix visual_style_overhead_threshold_settings --- .../ui/sunnypilot/qt/offroad/settings/visuals_panel.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/selfdrive/ui/sunnypilot/qt/offroad/settings/visuals_panel.cc b/selfdrive/ui/sunnypilot/qt/offroad/settings/visuals_panel.cc index fa6d357fd8..2f0b71b586 100644 --- a/selfdrive/ui/sunnypilot/qt/offroad/settings/visuals_panel.cc +++ b/selfdrive/ui/sunnypilot/qt/offroad/settings/visuals_panel.cc @@ -177,19 +177,19 @@ VisualsPanel::VisualsPanel(QWidget *parent) : QWidget(parent) { // Visual Style Overhead Threshold - visual_style_threshold_settings = new OptionControlSP("VisualStyleOverheadThreshold", tr("Visual Style Overhead Threshold"), + visual_style_overhead_threshold_settings = new OptionControlSP("VisualStyleOverheadThreshold", tr("Visual Style Overhead Threshold"), tr("Adjust the threshold when overhead blend activates."), "", {10, 80}, 5, false, nullptr, false); - connect(visual_style_threshold_settings, &OptionControlSP::updateLabels, [=]() { + connect(visual_style_overhead_threshold_settings, &OptionControlSP::updateLabels, [=]() { int value = QString::fromStdString(params.get("VisualStyleOverheadThreshold")).toInt(); - visual_style_threshold_settings->setLabel(QString::number(value) + " mph"); + visual_style_overhead_threshold_settings->setLabel(QString::number(value) + " mph"); }); int value = QString::fromStdString(params.get("VisualStyleOverheadThreshold")).toInt(); - visual_style_threshold_settings->setLabel(QString::number(value) + " mph"); + visual_style_overhead_threshold_settings->setLabel(QString::number(value) + " mph"); - list->addItem(visual_style_threshold_settings); + list->addItem(visual_style_overhead_threshold_settings); // Visuals: Display Metrics below Chevron