UI: cleanup draw_alerts condition (#19875)

old-commit-hash: 8b4731ffc8
commatwo_master
Dean Lee 4 years ago committed by GitHub
parent f920e1cd33
commit 32dfaa9b2a
  1. 3
      selfdrive/ui/paint.cc

@ -416,8 +416,7 @@ void ui_draw(UIState *s) {
s->scene.viz_rect.w -= sbr_w;
}
const bool draw_alerts = s->started && s->status != STATUS_OFFROAD &&
s->active_app == cereal::UiLayoutState::App::NONE;
const bool draw_alerts = s->started && s->active_app == cereal::UiLayoutState::App::NONE;
const bool draw_vision = draw_alerts && s->vipc_client->connected;
// GL drawing functions

Loading…
Cancel
Save