mobile/UI: add settings to display profile ceiling

So far only DC provided ceiling information was available and visibility
of that was simply inherited via cloud storage from the desktop.
With this the user can set both DC reported and calculated ceilings in
the advanced settings in the mobile app.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2021-01-10 15:50:17 -08:00
parent 669cbdaac5
commit 5fe3b7c8c6

View file

@ -602,6 +602,44 @@ TemplatePage {
TemplateLine {
visible: sectionAdvanced.isExpanded
}
GridLayout {
id: profilePrefs
visible: sectionAdvanced.isExpanded
width: parent.width
columns: 2
TemplateLabel {
text: qsTr("Profile deco ceiling")
font.pointSize: subsurfaceTheme.headingPointSize
font.weight: Font.Light
Layout.topMargin: Kirigami.Units.largeSpacing
Layout.bottomMargin: Kirigami.Units.largeSpacing / 2
Layout.columnSpan: 2
}
TemplateLabel {
text: qsTr("Show DC reported ceiling")
}
SsrfSwitch {
checked: PrefTechnicalDetails.dcceiling
onClicked: {
PrefTechnicalDetails.dcceiling = checked
rootItem.settingChanged()
}
}
TemplateLabel {
text: qsTr("Show calculated ceiling")
}
SsrfSwitch {
checked: PrefTechnicalDetails.calcceiling
onClicked: {
PrefTechnicalDetails.calcceiling = checked
rootItem.settingsChanged()
}
}
}
TemplateLine {
visible: sectionAdvanced.isExpanded
}
GridLayout {
id: developer
visible: sectionAdvanced.isExpanded