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 {
function showPage(pageIndex) { function showPage(pageIndex) {
pageRow.x = -(pageIndex * _pageWidth) pageRow.x = -(pageIndex * _pageWidth)
_currentPage = pageIndex
} }
function showNextPage() { function showNextPage() {

2
src/FlightMap/Widgets/VehicleHealthWidget.qml

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

Loading…
Cancel
Save