1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-18 03:52:11 +01:00

OP-1354 Background color (Consumed energy alarm) only displayed with value is > 0

This commit is contained in:
Laurent Lalanne 2014-05-27 00:03:52 +02:00
parent f8ce7f0624
commit 08dce43934

View File

@ -20,6 +20,8 @@ Item {
// Alarm based on FlightBatteryState.EstimatedFlightTime < 120s orange, < 60s red
color: (FlightBatteryState.EstimatedFlightTime <= 120 && FlightBatteryState.EstimatedFlightTime > 60 ? "orange" :
(FlightBatteryState.EstimatedFlightTime <= 60 ? "red": "black"))
visible: FlightBatteryState.ConsumedEnergy > 0
}
}