mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-06 14:16:39 +08:00
ui/DeveloperPanel: initialize offroad state, refresh toggle, and cleanup Includes (#34510)
small fixes
This commit is contained in:
@@ -1,10 +1,6 @@
|
||||
#include <QDebug>
|
||||
#include <QProcess>
|
||||
|
||||
#include "selfdrive/ui/qt/offroad/developer_panel.h"
|
||||
#include "selfdrive/ui/qt/widgets/ssh_keys.h"
|
||||
#include "selfdrive/ui/qt/widgets/controls.h"
|
||||
#include "common/util.h"
|
||||
|
||||
DeveloperPanel::DeveloperPanel(SettingsWindow *parent) : ListWidget(parent) {
|
||||
adbToggle = new ParamControl("AdbEnabled", tr("Enable ADB"),
|
||||
@@ -89,6 +85,7 @@ void DeveloperPanel::updateToggles(bool _offroad) {
|
||||
longManeuverToggle->setEnabled(false);
|
||||
experimentalLongitudinalToggle->setVisible(false);
|
||||
}
|
||||
experimentalLongitudinalToggle->refresh();
|
||||
|
||||
offroad = _offroad;
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@ private:
|
||||
ParamControl* longManeuverToggle;
|
||||
ParamControl* experimentalLongitudinalToggle;
|
||||
bool is_release;
|
||||
bool offroad;
|
||||
bool offroad = false;
|
||||
|
||||
private slots:
|
||||
void updateToggles(bool _offroad);
|
||||
|
||||
Reference in New Issue
Block a user