diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-06-14 08:17:06 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-06-14 08:32:37 -0700 |
commit | 10b9202757b1db7f34af5f80c6aafe1ef2fcee88 (patch) | |
tree | 6c166c503d3873b2e9cf1901eea7558337428a49 /pref.h | |
parent | bfd3782b81f5a4ddd793207702c5af0ffb7e7def (diff) | |
download | subsurface-10b9202757b1db7f34af5f80c6aafe1ef2fcee88.tar.gz |
Preferences: hook up default file behavior in the dialog
This now sets the preference variable / config entry and keeps them in
sync. Doesn't actually change the behavior at program start, yet.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'pref.h')
-rw-r--r-- | pref.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -89,6 +89,7 @@ struct preferences { int defaultsetpoint; // default setpoint in mbar bool show_pictures_in_profile; bool use_default_file; + short default_file_behavior; facebook_prefs_t facebook; char *cloud_storage_password; char *cloud_storage_email; @@ -103,6 +104,13 @@ enum unit_system_values { PERSONALIZE }; +enum def_file_behavior { + UNDEFINED_DEFAULT_FILE, + LOCAL_DEFAULT_FILE, + NO_DEFAULT_FILE, + CLOUD_DEFAULT_FILE +}; + extern struct preferences prefs, default_prefs; #define PP_GRAPHS_ENABLED (prefs.pp_graphs.po2 || prefs.pp_graphs.pn2 || prefs.pp_graphs.phe) |