mobile-widgets/qml: Add drop_stone to rates

Drop_stone_mode, when set, affect the descent rate, so place it alongside the
descent rate.

Signed-off-by: jan Iversen <jan@casacondor.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
jan Iversen 2020-01-08 10:02:41 +01:00 committed by Dirk Hohndel
parent 0710e610d3
commit 2ef0d23c29

View file

@ -119,6 +119,7 @@ Kirigami.ScrollablePage {
to: 99
stepSize: 1
value: Backend.descrate
enabled: !Backend.drop_stone_mode
textFromValue: function (value, locale) {
return value + speedUnit
}
@ -126,6 +127,13 @@ Kirigami.ScrollablePage {
Backend.descrate = value
}
}
TemplateCheckBox {
text: qsTr("Drop to first depth")
checked: Backend.drop_stone_mode
onClicked: {
Backend.drop_stone_mode = checked
}
}
}
}
TemplateSection {