ui: don't grey out Error Troubleshoot when onroad (#105)

This commit is contained in:
Jason Wen
2023-06-08 17:01:23 -04:00
committed by GitHub
parent 46c9d00516
commit 75f23637dc
+3 -1
View File
@@ -253,7 +253,9 @@ DevicePanel::DevicePanel(SettingsWindow *parent) : ListWidget(parent) {
QObject::connect(uiState(), &UIState::offroadTransition, [=](bool offroad) {
for (auto btn : findChildren<ButtonControl *>()) {
btn->setEnabled(offroad);
if (btn != errorBtn) {
btn->setEnabled(offroad);
}
}
});