From 68e326b238ae8b3868fe9d176381a5f6669fb1fd Mon Sep 17 00:00:00 2001 From: Rick Lan Date: Tue, 11 Jun 2024 10:53:55 +0800 Subject: [PATCH] added DP menu --- selfdrive/ui/qt/offroad/settings.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/selfdrive/ui/qt/offroad/settings.cc b/selfdrive/ui/qt/offroad/settings.cc index 96fe6585c..9645d92b3 100644 --- a/selfdrive/ui/qt/offroad/settings.cc +++ b/selfdrive/ui/qt/offroad/settings.cc @@ -14,6 +14,9 @@ #include "selfdrive/ui/qt/widgets/prime.h" #include "selfdrive/ui/qt/widgets/scrollview.h" #include "selfdrive/ui/qt/widgets/ssh_keys.h" +#ifdef DP +#include "dp_priv/selfdrive/ui/qt/offroad/settings.h" +#endif TogglesPanel::TogglesPanel(SettingsWindow *parent) : ListWidget(parent) { // param, title, desc, icon @@ -405,6 +408,9 @@ SettingsWindow::SettingsWindow(QWidget *parent) : QFrame(parent) { {tr("Network"), new Networking(this)}, {tr("Toggles"), toggles}, {tr("Software"), new SoftwarePanel(this)}, + #ifdef DP + {"DP Addons", new DPCtrlPanel(this)}, + #endif }; nav_btns = new QButtonGroup(this);