mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-20 13:32:04 +08:00
ui/OnroadWindow: do not update state when offroad (#29134)
do not updateState when offroad
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user