UI: remove redundant condition (#23918)

pull/23920/head
royjr 2022-03-07 12:57:32 -05:00 committed by GitHub
parent b9541d66c0
commit 82bc052dc6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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");