From 08f075ab23c3fcc29e860bcd4940d862dfc9c98c Mon Sep 17 00:00:00 2001 From: James Vecellio-Grant <159560811+Discountchubbs@users.noreply.github.com> Date: Sat, 19 Jul 2025 10:35:34 -0700 Subject: [PATCH] ui: Link Advanced Controls (#1060) --- .../ui/sunnypilot/qt/offroad/settings/developer_panel.cc | 4 ++-- selfdrive/ui/sunnypilot/qt/offroad/settings/models_panel.cc | 2 +- selfdrive/ui/sunnypilot/qt/offroad/settings/software_panel.cc | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/selfdrive/ui/sunnypilot/qt/offroad/settings/developer_panel.cc b/selfdrive/ui/sunnypilot/qt/offroad/settings/developer_panel.cc index f781a015c..5c9f0ff99 100644 --- a/selfdrive/ui/sunnypilot/qt/offroad/settings/developer_panel.cc +++ b/selfdrive/ui/sunnypilot/qt/offroad/settings/developer_panel.cc @@ -19,11 +19,11 @@ DeveloperPanelSP::DeveloperPanelSP(SettingsWindow *parent) : DeveloperPanel(pare showAdvancedControls->showDescription(); // Github Runner Toggle - enableGithubRunner = new ParamControlSP("EnableGithubRunner", tr("Enable GitHub runner service"), tr("Enables or disables the github runner service."), ""); + enableGithubRunner = new ParamControlSP("EnableGithubRunner", tr("Enable GitHub runner service"), tr("Enables or disables the github runner service."), "", this, true); addItem(enableGithubRunner); // Quickboot Mode Toggle - prebuiltToggle = new ParamControlSP("QuickBootToggle", tr("Enable Quickboot Mode"), tr(""), ""); + prebuiltToggle = new ParamControlSP("QuickBootToggle", tr("Enable Quickboot Mode"), tr(""), "", this, true); addItem(prebuiltToggle); QObject::connect(prebuiltToggle, &ParamControl::toggleFlipped, [=](bool state) { diff --git a/selfdrive/ui/sunnypilot/qt/offroad/settings/models_panel.cc b/selfdrive/ui/sunnypilot/qt/offroad/settings/models_panel.cc index 4cbd4f11e..e565269eb 100644 --- a/selfdrive/ui/sunnypilot/qt/offroad/settings/models_panel.cc +++ b/selfdrive/ui/sunnypilot/qt/offroad/settings/models_panel.cc @@ -98,7 +98,7 @@ ModelsPanel::ModelsPanel(QWidget *parent) : QWidget(parent) { delay_control = new OptionControlSP("LagdToggledelay", tr("Adjust Software Delay"), tr("Adjust the software delay when Live Learning Steer Delay is toggled off." "\nThe default software delay value is 0.2"), - "", {5, 30}, 1, false, nullptr, true); + "", {5, 30}, 1, false, nullptr, true, true); connect(delay_control, &OptionControlSP::updateLabels, [=]() { float value = QString::fromStdString(params.get("LagdToggledelay")).toFloat(); diff --git a/selfdrive/ui/sunnypilot/qt/offroad/settings/software_panel.cc b/selfdrive/ui/sunnypilot/qt/offroad/settings/software_panel.cc index 7bef7ed20..a1961cb1e 100644 --- a/selfdrive/ui/sunnypilot/qt/offroad/settings/software_panel.cc +++ b/selfdrive/ui/sunnypilot/qt/offroad/settings/software_panel.cc @@ -24,7 +24,7 @@ SoftwarePanelSP::SoftwarePanelSP(QWidget *parent) : SoftwarePanel(parent) { tr("Disable Updates"), tr("When enabled, software updates will be disabled. This requires a reboot to take effect."), "../assets/icons/icon_warning.png", - this); + this, true); disableUpdatesToggle->showDescription(); addItem(disableUpdatesToggle); connect(disableUpdatesToggle, &ParamControl::toggleFlipped, this, &SoftwarePanelSP::handleDisableUpdatesToggled);