From da9155505627cf4490704bf928e71f77a094337f Mon Sep 17 00:00:00 2001 From: Dean Lee Date: Tue, 1 Aug 2023 11:25:15 +0800 Subject: [PATCH] ui/OnroadWindow: do not update state when offroad (#29134) do not updateState when offroad --- selfdrive/ui/qt/onroad.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/selfdrive/ui/qt/onroad.cc b/selfdrive/ui/qt/onroad.cc index 0c126304de..a435dd27c7 100644 --- a/selfdrive/ui/qt/onroad.cc +++ b/selfdrive/ui/qt/onroad.cc @@ -52,6 +52,10 @@ OnroadWindow::OnroadWindow(QWidget *parent) : QWidget(parent) { } void OnroadWindow::updateState(const UIState &s) { + if (!s.scene.started) { + return; + } + QColor bgColor = bg_colors[s.status]; Alert alert = Alert::get(*(s.sm), s.scene.started_frame); alerts->updateAlert(alert);