ui/OnroadWindow: do not update state when offroad (#29134)

do not updateState when offroad
This commit is contained in:
Dean Lee
2023-08-01 11:25:15 +08:00
committed by GitHub
parent 9992f852b2
commit da91555056
+4
View File
@@ -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);