From ff4b5478b520856d0b9d2b423627050a1672418d Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Tue, 16 Jun 2015 20:28:42 -0700 Subject: 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 --- pref.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pref.h') diff --git a/pref.h b/pref.h index 3c39409a7..c657cf289 100644 --- a/pref.h +++ b/pref.h @@ -120,7 +120,7 @@ enum cloud_status { CS_VERIFIED }; -extern struct preferences prefs, default_prefs; +extern struct preferences prefs, default_prefs, informational_prefs; #define PP_GRAPHS_ENABLED (prefs.pp_graphs.po2 || prefs.pp_graphs.pn2 || prefs.pp_graphs.phe) -- cgit v1.2.3-70-g09d2