mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Planner: reset GFlow and GFhigh when we're done
While planning we might change the gradient factors. Make sure they are back to what's in the preferences when we're done planning. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
ecb5f4c792
commit
6daeb276ad
1 changed files with 4 additions and 0 deletions
|
@ -336,6 +336,10 @@ void DivePlannerPointsModel::setPlanMode(Mode m)
|
|||
mode = m;
|
||||
if (m == NOTHING)
|
||||
stagingDive = NULL;
|
||||
// the planner may reset our GF settings that are used to show deco
|
||||
// reset them to what's in the preferences
|
||||
if (m != PLAN)
|
||||
set_gf(prefs.gflow, prefs.gfhigh, prefs.gf_low_at_maxdepth);
|
||||
}
|
||||
|
||||
bool DivePlannerPointsModel::isPlanner()
|
||||
|
|
Loading…
Add table
Reference in a new issue