From 75f23637dc71d9854a2a9d73fcaeeedbe3678929 Mon Sep 17 00:00:00 2001 From: Jason Wen Date: Thu, 8 Jun 2023 17:01:23 -0400 Subject: [PATCH] ui: don't grey out Error Troubleshoot when onroad (#105) --- selfdrive/ui/qt/offroad/settings.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/selfdrive/ui/qt/offroad/settings.cc b/selfdrive/ui/qt/offroad/settings.cc index 54e4fb4080..61f7752242 100644 --- a/selfdrive/ui/qt/offroad/settings.cc +++ b/selfdrive/ui/qt/offroad/settings.cc @@ -253,7 +253,9 @@ DevicePanel::DevicePanel(SettingsWindow *parent) : ListWidget(parent) { QObject::connect(uiState(), &UIState::offroadTransition, [=](bool offroad) { for (auto btn : findChildren()) { - btn->setEnabled(offroad); + if (btn != errorBtn) { + btn->setEnabled(offroad); + } } });