From b6d851a95d11cafb3e8790f1f5fddb49b0eae595 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Sun, 11 Oct 2015 11:37:17 +0200 Subject: [PATCH] Main toolbar: Clearly indicate that we do not have battery indication (and the battery is not just flat at 0.0V --- src/ui/toolbar/MainToolBar.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/toolbar/MainToolBar.qml b/src/ui/toolbar/MainToolBar.qml index 4aa8f5bd7..2d55ed745 100644 --- a/src/ui/toolbar/MainToolBar.qml +++ b/src/ui/toolbar/MainToolBar.qml @@ -479,7 +479,7 @@ Rectangle { QGCLabel { visible: batteryStatus.visible && activeVehicle.batteryConsumed < 0.0 - text: activeVehicle.batteryVoltage.toFixed(1) + 'V'; + text: (activeVehicle.batteryVoltage > 0) ? activeVehicle.batteryVoltage.toFixed(1) + 'V' : '---'; font.pixelSize: ScreenTools.smallFontPixelSize font.weight: Font.DemiBold anchors.right: parent.right -- 2.22.0