diff --git a/selfdrive/ui/qt/offroad/settings.h b/selfdrive/ui/qt/offroad/settings.h index 501a9732c..8ce3a0c9c 100644 --- a/selfdrive/ui/qt/offroad/settings.h +++ b/selfdrive/ui/qt/offroad/settings.h @@ -21,6 +21,7 @@ #define ButtonParamControl ButtonParamControlSP #define ToggleControl ToggleControlSP #define LabelControl LabelControlSP + #else #include "selfdrive/ui/ui.h" #include "selfdrive/ui/qt/widgets/controls.h" @@ -81,8 +82,10 @@ public slots: void scrollToToggle(const QString ¶m); protected: + void showEvent(QShowEvent *event) override; Params params; std::map toggles; + OptionControlSP *steer_offset_control = nullptr; }; class TogglesPanel : public ListWidget {