Commit 5a5eb6ce authored by wuhai's avatar wuhai

fixed bug: the highlight mode is not the actually mode

parent 3cb4f124
......@@ -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
}
}
......
Markdown is supported
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