From ccde494acc87eabebfbb1c6667effd059cc0f06b Mon Sep 17 00:00:00 2001 From: Jason Wen Date: Thu, 14 Sep 2023 15:12:01 -0400 Subject: [PATCH] ui: Hide bottom row dev UI when alerts are displayed (#272) --- selfdrive/ui/qt/onroad.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/ui/qt/onroad.cc b/selfdrive/ui/qt/onroad.cc index fbc7a0dc8c..ca0e7021f5 100644 --- a/selfdrive/ui/qt/onroad.cc +++ b/selfdrive/ui/qt/onroad.cc @@ -806,7 +806,7 @@ void AnnotatedCameraWidget::drawHud(QPainter &p) { if (!reversing) { // ####### 1 ROW ####### QRect bar_rect1(rect().left(), rect().bottom() - 60, rect().width(), 61); - if (devUiEnabled && !splitPanelVisible && devUiInfo == 1) { + if (!hideBottomIcons && devUiEnabled && !splitPanelVisible && devUiInfo == 1) { p.setPen(Qt::NoPen); p.setBrush(QColor(0, 0, 0, 100)); p.drawRect(bar_rect1);