Commit 8db18dae authored by Don Gagne's avatar Don Gagne

parent 075ee5e6
...@@ -128,9 +128,7 @@ SetupPage { ...@@ -128,9 +128,7 @@ SetupPage {
onWaitingForCancelChanged: { onWaitingForCancelChanged: {
if (controller.waitingForCancel) { if (controller.waitingForCancel) {
showMessage(qsTr("Calibration Cancel"), qsTr("Waiting for Vehicle to response to Cancel. This may take a few seconds."), 0) showDialog(waitForCancelDialogComponent, qsTr("Calibration Cancel"), qgcView.showDialogDefaultWidth, 0)
} else {
hideDialog()
} }
} }
...@@ -163,6 +161,24 @@ SetupPage { ...@@ -163,6 +161,24 @@ SetupPage {
QGCPalette { id: qgcPal; colorGroupEnabled: true } QGCPalette { id: qgcPal; colorGroupEnabled: true }
Component {
id: waitForCancelDialogComponent
QGCViewMessage {
message: qsTr("Waiting for Vehicle to response to Cancel. This may take a few seconds.")
Connections {
target: controller
onWaitingForCancelChanged: {
if (!controller.waitingForCancel) {
hideDialog()
}
}
}
}
}
Component { Component {
id: singleCompassOnboardResultsComponent id: singleCompassOnboardResultsComponent
...@@ -265,7 +281,10 @@ SetupPage { ...@@ -265,7 +281,10 @@ SetupPage {
QGCButton { QGCButton {
text: qsTr("Reboot Vehicle") text: qsTr("Reboot Vehicle")
onClicked: controller.vehicle.reboot() onClicked: {
controller.vehicle.rebootVehicle()
hideDialog()
}
} }
} }
} }
...@@ -290,8 +309,11 @@ SetupPage { ...@@ -290,8 +309,11 @@ SetupPage {
QGCButton { QGCButton {
text: qsTr("Reboot Vehicle") text: qsTr("Reboot Vehicle")
onClicked: controller.vehicle.rebootVehicle() onClicked: {
} controller.vehicle.rebootVehicle()
hideDialog()
}
}
} }
} }
} }
......
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