UI: remove redundant condition (#23918)

old-commit-hash: 82bc052dc6
taco
royjr 4 years ago committed by GitHub
parent 575a2eb738
commit 388ae5e59e
  1. 2
      selfdrive/ui/qt/onroad.cc

@ -222,7 +222,7 @@ void OnroadHud::paintEvent(QPaintEvent *event) {
configFont(p, "Open Sans", 48, "Regular");
drawText(p, rc.center().x(), 118, "MAX", is_cruise_set ? 200 : 100);
if (is_cruise_set) {
configFont(p, "Open Sans", 88, is_cruise_set ? "Bold" : "SemiBold");
configFont(p, "Open Sans", 88, "Bold");
drawText(p, rc.center().x(), 212, maxSpeed, 255);
} else {
configFont(p, "Open Sans", 80, "SemiBold");

Loading…
Cancel
Save