From 7720a6f1ccbb2669a28ef9cc8942ba97402c9310 Mon Sep 17 00:00:00 2001 From: Rick Lan Date: Fri, 14 Jun 2024 14:44:53 +0800 Subject: [PATCH] allow toggle while onroad --- selfdrive/ui/qt/offroad/settings.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/selfdrive/ui/qt/offroad/settings.cc b/selfdrive/ui/qt/offroad/settings.cc index cb22bb414..0fc0704b6 100644 --- a/selfdrive/ui/qt/offroad/settings.cc +++ b/selfdrive/ui/qt/offroad/settings.cc @@ -272,6 +272,8 @@ DevicePanel::DevicePanel(SettingsWindow *parent) : ListWidget(parent) { QObject::connect(uiState(), &UIState::primeTypeChanged, [this] (PrimeType type) { pair_device->setVisible(type == PrimeType::UNPAIRED); }); + #if 0 + // rick - allowing toggle changes QObject::connect(uiState(), &UIState::offroadTransition, [=](bool offroad) { for (auto btn : findChildren()) { if (btn != pair_device) { @@ -279,6 +281,7 @@ DevicePanel::DevicePanel(SettingsWindow *parent) : ListWidget(parent) { } } }); + #endif // power buttons QHBoxLayout *power_layout = new QHBoxLayout();