6import QGroundControl.Controls
8/// Popup container for preflight checklists
11 title: qsTr("Pre-Flight Checklist")
14 property var _activeVehicle: QGroundControl.multiVehicleManager.activeVehicle
15 property bool _useChecklist: QGroundControl.settingsManager.appSettings.useChecklist.rawValue && QGroundControl.corePlugin.options.preFlightChecklistUrl.toString().length
16 property bool _enforceChecklist: _useChecklist && QGroundControl.settingsManager.appSettings.enforceChecklist.rawValue
17 property bool _checklistComplete: _activeVehicle && (_activeVehicle.checkListState === Vehicle.CheckListPassed)
19 on_ActiveVehicleChanged: _showPreFlightChecklistIfNeeded()
23 onShowPreFlightChecklistIfNeeded: _root._showPreFlightChecklistIfNeeded()
26 function _showPreFlightChecklistIfNeeded() {
27 if (_activeVehicle && !_checklistComplete && _enforceChecklist) {
37 if (!_checklistComplete) {
47 source: QGroundControl.corePlugin.options.preFlightChecklistUrl
50 property alias checkListItem: checkList.item
53 target: checkList.item
54 onAllChecksPassedChanged: {
55 if (target.allChecksPassed) {