Commit 3f0806ac authored by Don Gagne's avatar Don Gagne Committed by GitHub

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

Bugfix for vehicle health instrument view
parents 4fc1047b 79527600
...@@ -29,6 +29,7 @@ Item { ...@@ -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() {
......
...@@ -30,7 +30,7 @@ QGCFlickable { ...@@ -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)
} }
} }
......
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