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>
This commit is contained in:
Dirk Hohndel 2013-06-03 21:08:49 +09:00
parent 77c4b8ef87
commit b38e2ab485
5 changed files with 91 additions and 74 deletions

2
pref.h
View file

@ -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;