Browse Source

Merge pull request #5130 from bluerobotics/vehicle-health-bug

Bugfix for vehicle health instrument view
QGC4.4
Don Gagne 8 years ago committed by GitHub
parent
commit
3f0806ac10
  1. 1
      src/FlightMap/Widgets/InstrumentSwipeView.qml
  2. 2
      src/FlightMap/Widgets/VehicleHealthWidget.qml

1
src/FlightMap/Widgets/InstrumentSwipeView.qml

@ -29,6 +29,7 @@ Item { @@ -29,6 +29,7 @@ Item {
function showPage(pageIndex) {
pageRow.x = -(pageIndex * _pageWidth)
_currentPage = pageIndex
}
function showNextPage() {

2
src/FlightMap/Widgets/VehicleHealthWidget.qml

@ -30,7 +30,7 @@ QGCFlickable { @@ -30,7 +30,7 @@ QGCFlickable {
// Any time the unhealthy sensors list changes, switch to the health page
onUnhealthySensorsChanged: {
if (unhealthySensors.length != 0) {
showPage(1)
showPage(2)
}
}

Loading…
Cancel
Save