This commit is contained in:
firestar5683
2026-06-08 19:47:27 -05:00
parent bdb0da4fa0
commit 5f413b967e
2 changed files with 8 additions and 1 deletions
+3 -1
View File
@@ -5,6 +5,7 @@
#include <algorithm>
#include <cmath>
#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
@@ -174,6 +174,11 @@ StarPilotVisualsPanel::StarPilotVisualsPanel(StarPilotSettingsWindow *parent, bo
QObject::connect(visualToggle, &AbstractControl::showDescriptionEvent, [this]() {
update();
});
if (ToggleControl *toggle = qobject_cast<ToggleControl*>(visualToggle)) {
QObject::connect(toggle, &ToggleControl::toggleFlipped, this, []() {
updateStarPilotToggles();
});
}
}
QSet<QString> forceUpdateKeys = {"HideLeadMarker", "ShowSpeedLimits"};