Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
52d8a552
Commit
52d8a552
authored
Feb 28, 2020
by
Jacob Dahl
Browse files
Fixes offline checklist handling to load the correct checklist based on the saved app setting fact
parent
ba521412
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/FlightDisplay/PreFlightCheckList.qml
View file @
52d8a552
...
...
@@ -23,7 +23,9 @@ Rectangle {
color
:
qgcPal
.
windowShade
radius
:
3
property
real
_verticalMargin
:
ScreenTools
.
defaultFontPixelHeight
/
2
property
real
_verticalMargin
:
ScreenTools
.
defaultFontPixelHeight
/
2
property
var
_offlineEditingVehicleType
:
QGroundControl
.
settingsManager
.
appSettings
.
offlineEditingVehicleType
Loader
{
id
:
modelContainer
...
...
@@ -82,6 +84,27 @@ Rectangle {
}
return
}
// "enumStrings": "Fixed Wing,Multi-Rotor,VTOL,Rover,Sub",
// "enumValues": "1,2,20,10,12",
switch
(
_offlineEditingVehicleType
.
rawValue
)
{
case
1
:
modelContainer
.
source
=
"
/checklists/FixedWingChecklist.qml
"
return
case
2
:
modelContainer
.
source
=
"
/checklists/MultiRotorChecklist.qml
"
return
case
20
:
modelContainer
.
source
=
"
/checklists/VTOLChecklist.qml
"
return
case
10
:
modelContainer
.
source
=
"
/checklists/RoverChecklist.qml
"
return
case
12
:
modelContainer
.
source
=
"
/checklists/SubChecklist.qml
"
return
}
modelContainer
.
source
=
"
/checklists/DefaultChecklist.qml
"
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment