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:
parent
f8ce7f0624
commit
08dce43934
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user