Mobile: Fix Gradient Factor Preference Setting.

Fix the persisting and use of gradient factor preferences for dive
profiles in the mobile version.
Also rename the mobile backend gradient factor settings to make it
obvious that they are used by the (not currently enabled) planner.

Signed-off-by: Michael Keller <github@ike.ch>
This commit is contained in:
Michael Keller 2024-01-26 01:18:26 +13:00 committed by Dirk Hohndel
parent a59d033278
commit fb41999c73
6 changed files with 28 additions and 20 deletions

View file

@ -230,12 +230,12 @@ TemplatePage {
from: 10
to: 150
stepSize: 1
value: Backend.gflow
value: Backend.planner_gflow
textFromValue: function (value, locale) {
return value + volumeUnit
}
onValueModified: {
Backend.gflow = value
Backend.planner_gflow = value
}
}
@ -247,12 +247,12 @@ TemplatePage {
from: 10
to: 150
stepSize: 1
value: Backend.gfhigh
value: Backend.planner_gfhigh
textFromValue: function (value, locale) {
return value + volumeUnit
}
onValueModified: {
Backend.gfhigh = value
Backend.planner_gfhigh = value
}
}