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

do not updateState when offroad
old-commit-hash: da9155505627cf4490704bf928e71f77a094337f
This commit is contained in:
Dean Lee
2023-08-01 11:25:15 +08:00
committed by GitHub
parent fcd84e35b9
commit 823b570082
+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);