Commit 75dcc988 authored by Gus Grubba's avatar Gus Grubba

Handle setup page completed at the setup root level, Now for Firmware and Joystick controllers.

parent 18c16023
......@@ -62,7 +62,6 @@ SetupPage {
property bool _defaultFirmwareIsPX4: true
property string firmwareWarningMessage
property bool controllerCompleted: false
property bool initialBoardSearch: true
property string firmwareName
......@@ -76,6 +75,11 @@ SetupPage {
QGCPalette { id: qgcPal; colorGroupEnabled: true }
onSetupPageCompleted: {
controller.startBoardSearch()
_defaultFirmwareIsPX4 = _defaultFirmwareFact.rawValue === _defaultFimwareTypePX4 // we don't want this to be bound and change as radios are selected
}
FirmwareUpgradeController {
id: controller
progressBar: progressBar
......@@ -83,11 +87,6 @@ SetupPage {
property var activeVehicle: QGroundControl.multiVehicleManager.activeVehicle
Component.onCompleted: {
controllerCompleted = true
controller.startBoardSearch()
}
onActiveVehicleChanged: {
if (!activeVehicle) {
statusTextArea.append(plugInText)
......@@ -129,14 +128,6 @@ SetupPage {
}
}
Component.onCompleted: {
if (controllerCompleted) {
// We can only start the board search when the Qml and Controller are completely done loading
controller.startBoardSearch()
}
_defaultFirmwareIsPX4 = _defaultFirmwareFact.rawValue === _defaultFimwareTypePX4 // we don't want this to be bound and change as radios are selected
}
Component {
id: pixhawkFirmwareSelectDialogComponent
......
......@@ -46,34 +46,20 @@ SetupPage {
width: availableWidth
height: Math.max(leftColumn.height, rightColumn.height)
property bool controllerCompleted: false
property bool controllerAndViewReady: false
readonly property real labelToMonitorMargin: ScreenTools.defaultFontPixelWidth * 3
property var _activeJoystick: joystickManager.activeJoystick
onSetupPageCompleted: {
controller.start()
}
JoystickConfigController {
id: controller
statusText: statusText
cancelButton: cancelButton
nextButton: nextButton
skipButton: skipButton
Component.onCompleted: {
controllerCompleted = true
if (joystickPage.completedSignalled) {
controllerAndViewReady = true
controller.start()
}
}
}
Component.onCompleted: {
if (controllerCompleted) {
controllerAndViewReady = true
controller.start()
}
}
// Live axis monitor control component
......
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