diff --git a/selfdrive/ui/qt/onroad/annotated_camera.cc b/selfdrive/ui/qt/onroad/annotated_camera.cc index 6a6e191a0..48fbcd902 100644 --- a/selfdrive/ui/qt/onroad/annotated_camera.cc +++ b/selfdrive/ui/qt/onroad/annotated_camera.cc @@ -5,6 +5,7 @@ #include #include +#include "common/params.h" #include "common/swaglog.h" #include "selfdrive/ui/qt/util.h" @@ -44,7 +45,8 @@ void AnnotatedCameraWidget::updateState(const UIState &s, const StarPilotUIState const cereal::CarState::Reader &carState = sm["carState"].getCarState(); - const bool hide_steering_wheel = starpilot_toggles.value("hide_steering_wheel").toBool(); + static Params params; + const bool hide_steering_wheel = starpilot_toggles.value("hide_steering_wheel").toBool() || params.getBool("HideSteeringWheel"); experimental_btn->setVisible(!hide_steering_wheel); const QPoint experimental_button_position = hide_steering_wheel diff --git a/starpilot/ui/qt/offroad/visual_settings.cc b/starpilot/ui/qt/offroad/visual_settings.cc index 3447e14d0..5d15a7f69 100644 --- a/starpilot/ui/qt/offroad/visual_settings.cc +++ b/starpilot/ui/qt/offroad/visual_settings.cc @@ -174,6 +174,11 @@ StarPilotVisualsPanel::StarPilotVisualsPanel(StarPilotSettingsWindow *parent, bo QObject::connect(visualToggle, &AbstractControl::showDescriptionEvent, [this]() { update(); }); + if (ToggleControl *toggle = qobject_cast(visualToggle)) { + QObject::connect(toggle, &ToggleControl::toggleFlipped, this, []() { + updateStarPilotToggles(); + }); + } } QSet forceUpdateKeys = {"HideLeadMarker", "ShowSpeedLimits"};