mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-06-28 01:52:06 +08:00
UI: remove redundant condition (#23918)
old-commit-hash: 82bc052dc631512f3cf871c1dc4b5c2be1cab052
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user