fix sidebar shadow in network settings (#1245)

pull/1247/head
Andrew Valish 5 years ago committed by GitHub
parent a258f1c2e4
commit 0aafd67b56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      selfdrive/ui/paint.cc

@ -877,11 +877,14 @@ static void ui_draw_blank(UIState *s) {
}
void ui_draw(UIState *s) {
ui_draw_sidebar(s);
if (s->vision_connected && s->active_app == cereal_UiLayoutState_App_home && s->status != STATUS_STOPPED) {
ui_draw_sidebar(s);
ui_draw_vision(s);
} else {
ui_draw_blank(s);
if (!s->scene.uilayout_sidebarcollapsed) {
ui_draw_sidebar(s);
}
}
{

Loading…
Cancel
Save