mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
a59d033278
commit
fb41999c73
6 changed files with 28 additions and 20 deletions
|
@ -523,6 +523,11 @@ void DivePlannerPointsModel::setGFHigh(const int gfhigh)
|
|||
}
|
||||
}
|
||||
|
||||
int DivePlannerPointsModel::gfHigh() const
|
||||
{
|
||||
return diveplan.gfhigh;
|
||||
}
|
||||
|
||||
void DivePlannerPointsModel::setGFLow(const int gflow)
|
||||
{
|
||||
if (diveplan.gflow != gflow) {
|
||||
|
@ -531,6 +536,11 @@ void DivePlannerPointsModel::setGFLow(const int gflow)
|
|||
}
|
||||
}
|
||||
|
||||
int DivePlannerPointsModel::gfLow() const
|
||||
{
|
||||
return diveplan.gflow;
|
||||
}
|
||||
|
||||
void DivePlannerPointsModel::setRebreatherMode(int mode)
|
||||
{
|
||||
int i;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue