aboutsummaryrefslogtreecommitdiffstats
path: root/pref.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-06-03 21:08:49 +0900
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-06-03 21:08:49 +0900
commitb38e2ab485756e33d4d8bbab8baf1969405a1d90 (patch)
treec3ac889102b6da5ad4c62fd02cbeb697c36c4028 /pref.h
parent77c4b8ef87fcbf0fd6be7cdd7581035bb96f0b58 (diff)
downloadsubsurface-b38e2ab485756e33d4d8bbab8baf1969405a1d90.tar.gz
Tie all the pieces together and make Preferences work as intended
Not Apply / Close without Saving / OK work as designed. And things get correctly stored and reset. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'pref.h')
-rw-r--r--pref.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/pref.h b/pref.h
index 376cc4a71..f722dd130 100644
--- a/pref.h
+++ b/pref.h
@@ -45,8 +45,10 @@ struct preferences {
int map_provider;
short display_invalid_dives;
short show_invalid;
+ short unit_system;
struct units units;
};
+enum unit_system_values { METRIC, IMPERIAL, PERSONALIZE };
extern struct preferences prefs, default_prefs;