From 002503a695a9cc803e41dd29e75a35c46c7f0e97 Mon Sep 17 00:00:00 2001 From: dogmaphobic Date: Tue, 15 Dec 2015 09:05:26 -0500 Subject: [PATCH] Show battery voltage if percentage not available. --- src/ui/toolbar/MainToolBarIndicators.qml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ui/toolbar/MainToolBarIndicators.qml b/src/ui/toolbar/MainToolBarIndicators.qml index 790e6acb2..a3a23869a 100644 --- a/src/ui/toolbar/MainToolBarIndicators.qml +++ b/src/ui/toolbar/MainToolBarIndicators.qml @@ -86,6 +86,9 @@ Row { if(activeVehicle.batteryPercent > 0.1) { return activeVehicle.batteryPercent.toFixed(0) + "%" } + if(activeVehicle.batteryVoltage > 0) { + return activeVehicle.batteryVoltage.toFixed(1) + "V" + } } return "N/A" } -- 2.22.0