mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
Read stored planner prefs when starting.
Back in 5bf23381e
we started storing planner settings in prefs.
We need to read those settings back when we start the planner.
Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
f8a808bcaf
commit
352433723d
1 changed files with 11 additions and 0 deletions
11
planner.c
11
planner.c
|
@ -881,6 +881,17 @@ int plan(struct diveplan *diveplan, char **cached_datap, bool is_planner, bool s
|
|||
diveplan->surface_pressure = SURFACE_PRESSURE;
|
||||
create_dive_from_plan(diveplan, is_planner);
|
||||
|
||||
if (prefs.verbatim_plan)
|
||||
plan_verbatim = true;
|
||||
if (prefs.display_runtime)
|
||||
plan_display_runtime = true;
|
||||
if (prefs.display_duration)
|
||||
plan_display_duration = true;
|
||||
if (prefs.display_transitions)
|
||||
plan_display_transitions = true;
|
||||
if (prefs.last_stop)
|
||||
decostoplevels[1] = 6000;
|
||||
|
||||
/* Let's start at the last 'sample', i.e. the last manually entered waypoint. */
|
||||
sample = &displayed_dive.dc.sample[displayed_dive.dc.samples - 1];
|
||||
|
||||
|
|
Loading…
Reference in a new issue