From bf617ba72c729af4fb7c3c1a686bc67395100757 Mon Sep 17 00:00:00 2001 From: Dorian Zedler Date: Sat, 15 Jul 2023 10:15:15 +0200 Subject: [PATCH] Chore: don't show 0.000 in speed results --- resources/qml/Components/SpeedQualificationResultRow.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/qml/Components/SpeedQualificationResultRow.qml b/resources/qml/Components/SpeedQualificationResultRow.qml index 5a09ed0..c7522bf 100644 --- a/resources/qml/Components/SpeedQualificationResultRow.qml +++ b/resources/qml/Components/SpeedQualificationResultRow.qml @@ -70,7 +70,7 @@ Row { horizontalAlignment: Text.AlignHCenter font.bold: thisData["result_l"] !== undefined && thisData["result_r"] !== undefined && thisData[thisKey] === thisData["result"] - text: control.thisData[thisKey] ?? "" + text: (control.thisData[thisKey] !== undefined && parseInt(control.thisData[thisKey]) > 0) ? control.thisData[thisKey] : "" } }