diff --git a/selfdrive/ui/qt/offroad/settings.cc b/selfdrive/ui/qt/offroad/settings.cc index 67b314a56..49e6ebeee 100644 --- a/selfdrive/ui/qt/offroad/settings.cc +++ b/selfdrive/ui/qt/offroad/settings.cc @@ -237,13 +237,13 @@ DevicePanel::DevicePanel(SettingsWindow *parent) : ListWidget(parent) { QObject::connect(uiState()->prime_state, &PrimeState::changed, [this] (PrimeState::Type type) { pair_device->setVisible(type == PrimeState::PRIME_TYPE_UNPAIRED); }); - QObject::connect(uiState(), &UIState::offroadTransition, [=](bool offroad) { - for (auto btn : findChildren()) { - if (btn != pair_device) { - btn->setEnabled(offroad); - } - } - }); +// QObject::connect(uiState(), &UIState::offroadTransition, [=](bool offroad) { +// for (auto btn : findChildren()) { +// if (btn != pair_device) { +// btn->setEnabled(offroad); +// } +// } +// }); // power buttons QHBoxLayout *power_layout = new QHBoxLayout();