summaryrefslogtreecommitdiffstats
path: root/subsurfacestartup.c
diff options
context:
space:
mode:
authorGravatar Gaetan Bisson <bisson@archlinux.org>2015-03-24 11:57:22 -1000
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-03-25 09:45:46 -0700
commit5bf23381e0dbf56aea19e646cf371d1d3ee80ada (patch)
treeea0ddcf495255334605a7c5bd5c45a14229bcad4 /subsurfacestartup.c
parent3ff73d0a6621b118b43358f420723eb7e50a9807 (diff)
downloadsubsurface-5bf23381e0dbf56aea19e646cf371d1d3ee80ada.tar.gz
Save more planner settings into prefs
This adds to the prefs struct the variables last_stop, verbatim_plan, display_runtime, display_duration, and display_transitions from the planner so their values are saved from one session to the next. The widgets for some of those settings had default values in plannerSettings.ui; remove them since the new code in subsurfacestartup.c takes care of initializing them. Signed-off-by: Gaetan Bisson <bisson@archlinux.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'subsurfacestartup.c')
-rw-r--r--subsurfacestartup.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/subsurfacestartup.c b/subsurfacestartup.c
index 62e37f932..ce66aee52 100644
--- a/subsurfacestartup.c
+++ b/subsurfacestartup.c
@@ -45,6 +45,11 @@ struct preferences default_prefs = {
.decopo2 = 1600,
.doo2breaks = false,
.drop_stone_mode = false,
+ .last_stop = false,
+ .verbatim_plan = false,
+ .display_runtime = true,
+ .display_duration = true,
+ .display_transitions = true,
.bottomsac = 20000,
.decosac = 17000,
.o2consumption = 720,