UI: cleanup draw_alerts condition (#19875)

old-commit-hash: 8b4731ffc89dbaf06964620f3b8623e24b920f55
This commit is contained in:
Dean Lee
2021-01-23 04:16:45 +08:00
committed by GitHub
parent f920e1cd33
commit 32dfaa9b2a

View File

@@ -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