summaryrefslogtreecommitdiffstats
path: root/core/settings
diff options
context:
space:
mode:
authorGravatar Doug Junkins <douglas.junkins@gmail.com>2021-01-19 07:50:08 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2021-01-19 12:34:46 -0800
commit31e26fd14451c84ef4531aaa3b643b10b529a637 (patch)
tree55897019a04dfc666c18c4b5ebec8f5c0a57516e /core/settings
parent25cfd852b910c7bbd53f0a1a5244c659761c2cc5 (diff)
downloadsubsurface-31e26fd14451c84ef4531aaa3b643b10b529a637.tar.gz
mobile: add GF fields for ceiling calculation
Adds fields to the advanced preferences page to modify GFLow and GFHigh for the Buhlmann decompression model for calculating ceilings. Updated preferences code to set the Buhlmann parameters in core/deco.c when the GF prefs are updated. Signed-off-by: Doug Junkins <douglas.junkins@gmail.com>
Diffstat (limited to 'core/settings')
-rw-r--r--core/settings/qPrefTechnicalDetails.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/settings/qPrefTechnicalDetails.cpp b/core/settings/qPrefTechnicalDetails.cpp
index 2db4898ae..3c616170d 100644
--- a/core/settings/qPrefTechnicalDetails.cpp
+++ b/core/settings/qPrefTechnicalDetails.cpp
@@ -62,6 +62,7 @@ void qPrefTechnicalDetails::set_gfhigh(int value)
if (value != prefs.gfhigh) {
prefs.gfhigh = value;
disk_gfhigh(true);
+ set_gf(-1, prefs.gfhigh);
emit instance()->gfhighChanged(value);
}
}
@@ -82,6 +83,7 @@ void qPrefTechnicalDetails::set_gflow(int value)
if (value != prefs.gflow) {
prefs.gflow = value;
disk_gflow(true);
+ set_gf(prefs.gflow, -1);
emit instance()->gflowChanged(value);
}
}