mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Separate VPM-B conservatism preference for planner and profile
Separate the VPM-B conservatism preference into diveplan.vpmb_conservatism for planning dives and prefs.vpmb_conservatism for profile ceiling display of saved dives. Signed-off-by: Rick Walsh <rickmwalsh@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
7b891904e7
commit
7e09a6c7bc
11 changed files with 92 additions and 49 deletions
|
|
@ -185,8 +185,10 @@ void DivePlannerPointsModel::setPlanMode(Mode m)
|
|||
mode = m;
|
||||
// the planner may reset our GF settings that are used to show deco
|
||||
// reset them to what's in the preferences
|
||||
if (m != PLAN)
|
||||
if (m != PLAN) {
|
||||
set_gf(prefs.gflow, prefs.gfhigh, prefs.gf_low_at_maxdepth);
|
||||
set_vpmb_conservatism(prefs.vpmb_conservatism);
|
||||
}
|
||||
}
|
||||
|
||||
bool DivePlannerPointsModel::isPlanner()
|
||||
|
|
@ -423,8 +425,10 @@ void DivePlannerPointsModel::triggerGFLow()
|
|||
|
||||
void DivePlannerPointsModel::setVpmbConservatism(int level)
|
||||
{
|
||||
prefs.vpmb_conservatism = level;
|
||||
emit dataChanged(createIndex(0, 0), createIndex(rowCount() - 1, COLUMNS - 1));
|
||||
if (diveplan.vpmb_conservatism != level) {
|
||||
diveplan.vpmb_conservatism = level;
|
||||
emitDataChanged();
|
||||
}
|
||||
}
|
||||
|
||||
void DivePlannerPointsModel::setSurfacePressure(int pressure)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue