From 5a5eb6ceadd56b91cfac191b5231b18fd68efeb1 Mon Sep 17 00:00:00 2001 From: wuhai Date: Thu, 5 Mar 2020 08:48:45 +0800 Subject: [PATCH] fixed bug: the highlight mode is not the actually mode --- src/AutoPilotPlugins/PX4/PX4SimpleFlightModes.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AutoPilotPlugins/PX4/PX4SimpleFlightModes.qml b/src/AutoPilotPlugins/PX4/PX4SimpleFlightModes.qml index cef4a531e..b55ad337d 100644 --- a/src/AutoPilotPlugins/PX4/PX4SimpleFlightModes.qml +++ b/src/AutoPilotPlugins/PX4/PX4SimpleFlightModes.qml @@ -102,7 +102,7 @@ Item { QGCLabel { Layout.fillWidth: true text: qsTr("Flight Mode %1").arg(modelData + 1) - color: controller.activeFlightMode == index ? "yellow" : qgcPal.text + color: (controller.activeFlightMode - 1) == index ? "yellow" : qgcPal.text } } -- 2.22.0