summaryrefslogtreecommitdiffstats
path: root/subsurfacestartup.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-06-16 20:28:42 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-06-17 09:48:10 -0700
commitff4b5478b520856d0b9d2b423627050a1672418d (patch)
treead37deb6f680863d172e91f2cf8dcd86779fb492 /subsurfacestartup.c
parent7cf3ebc2f7b65f6cb422b063e614cda6bfb472ac (diff)
downloadsubsurface-ff4b5478b520856d0b9d2b423627050a1672418d.tar.gz
Store the user's unit preferences in git storage
Save and load a usually unused copy of the preferences with the units that were active the last time the dive list was saved to git storage (this isn't used in XML files); storing the unit preferences in the data file is usually pointless (that's a setting of the software, not a property of the data), but it's a great hint of what the user might expect to see when creating a backend service that visualizes the dive list without Subsurface running - so this is basically a functionality for the core library that Subsurface itself doesn't use but that another consumer of the library (like an HTML exporter) will need. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'subsurfacestartup.c')
-rw-r--r--subsurfacestartup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/subsurfacestartup.c b/subsurfacestartup.c
index ab4af7035..a64c8175d 100644
--- a/subsurfacestartup.c
+++ b/subsurfacestartup.c
@@ -3,7 +3,7 @@
#include <stdbool.h>
#include <string.h>
#include "gettext.h"
-struct preferences prefs;
+struct preferences prefs, informational_prefs;
struct preferences default_prefs = {
.cloud_base_url = "https://cloud.subsurface-divelog.org/",
.units = SI_UNITS,