Browse Source

Main toolbar: Clearly indicate that we do not have battery indication (and the battery is not just flat at 0.0V

QGC4.4
Lorenz Meier 10 years ago
parent
commit
b6d851a95d
  1. 2
      src/ui/toolbar/MainToolBar.qml

2
src/ui/toolbar/MainToolBar.qml

@ -479,7 +479,7 @@ Rectangle { @@ -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

Loading…
Cancel
Save