From a941a1aa04be075178947836b14fa768b03ac9ec Mon Sep 17 00:00:00 2001 From: Laurent Lalanne Date: Thu, 14 May 2015 12:32:41 +0200 Subject: [PATCH] OP-1887 Hide bat tooltips when battery panel not displayed --- .../openpilotgcs/share/openpilotgcs/pfd/default/Panels.qml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ground/openpilotgcs/share/openpilotgcs/pfd/default/Panels.qml b/ground/openpilotgcs/share/openpilotgcs/pfd/default/Panels.qml index 24806a0db..622fb0f43 100644 --- a/ground/openpilotgcs/share/openpilotgcs/pfd/default/Panels.qml +++ b/ground/openpilotgcs/share/openpilotgcs/pfd/default/Panels.qml @@ -536,7 +536,8 @@ Item { anchors.fill: parent TooltipArea { - text: "Reset consumed energy" + text: "Reset consumed energy" + visible: display_bat == true ? 1 : 0 } MouseArea { @@ -594,7 +595,8 @@ Item { //color: panels.batColors[SystemAlarms.Alarm_Battery] TooltipArea { - text: "Reset consumed energy" + text: "Reset consumed energy" + visible: display_bat == true ? 1 : 0 } MouseArea {