Commit bf2250fb authored by Séverin Lemaignan's avatar Séverin Lemaignan
Browse files

UI: only show battery when robot is connected

parent ad3d5b77
......@@ -26,6 +26,7 @@ Item {
id: battery
anchors.left: connection.right
anchors.leftMargin: 0
visible: naoqi.connected
source: naoqi.plugged ? (
naoqi.battery < 0.1 ? "res/battery/battery-charging-10.svg":
naoqi.battery < 0.2 ? "res/battery/battery-charging-20.svg":
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment