summaryrefslogtreecommitdiffstats
path: root/subsurfacestartup.c
diff options
context:
space:
mode:
authorGravatar Gaetan Bisson <bisson@archlinux.org>2014-07-16 17:32:06 -1000
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-07-16 23:09:56 -0700
commite69bb1879eaee2cb9119ee5e46204f5ecef6d157 (patch)
treea3fff0ae0217cdbb99850c5e1c5b279e5bc0e87c /subsurfacestartup.c
parentd73d98c0322e71171796a5b2e27739a0d7ac96c3 (diff)
downloadsubsurface-e69bb1879eaee2cb9119ee5e46204f5ecef6d157.tar.gz
Store drop_stone_mode, bottomsac, decosac in prefs
The values for drop_stone_mode, bottomsac, and decosac are typically the kind of personal data specific to a diver that is unlikely to change from one dive plan to the next. This patch stores/restores them to/from the preferences file. For this, it adds bottomsac and decosac to the prefs structure; drop_stone_mode was already there, though not stored/restored. 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.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/subsurfacestartup.c b/subsurfacestartup.c
index 1af68510e..29d3ddd11 100644
--- a/subsurfacestartup.c
+++ b/subsurfacestartup.c
@@ -42,6 +42,8 @@ struct preferences default_prefs = {
.decopo2 = 1600,
.doo2breaks = false,
.drop_stone_mode = false,
+ .bottomsac = 20,
+ .decosac = 17,
.show_pictures_in_profile = true
};