summaryrefslogtreecommitdiffstats
path: root/core/pref.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/pref.h')
-rw-r--r--core/pref.h19
1 files changed, 9 insertions, 10 deletions
diff --git a/core/pref.h b/core/pref.h
index f317a795c..895006f7e 100644
--- a/core/pref.h
+++ b/core/pref.h
@@ -44,11 +44,18 @@ enum deco_mode {
VPMB
};
+enum def_file_behavior {
+ UNDEFINED_DEFAULT_FILE,
+ LOCAL_DEFAULT_FILE,
+ NO_DEFAULT_FILE,
+ CLOUD_DEFAULT_FILE
+};
+
typedef struct {
bool dont_check_for_updates;
bool dont_check_exists;
const char *last_version_used;
- const char *next_check;
+ int next_check;
} update_manager_prefs_t;
typedef struct {
@@ -102,7 +109,6 @@ struct preferences {
const char *divelist_font;
double font_size;
bool show_developer;
- const char *theme;
// ********** Facebook **********
facebook_prefs_t facebook;
@@ -115,7 +121,7 @@ struct preferences {
int defaultsetpoint; // default setpoint in mbar
const char *default_cylinder;
const char *default_filename;
- short default_file_behavior;
+ enum def_file_behavior default_file_behavior;
int o2consumption; // ml per min
int pscr_ratio; // dump ratio times 1000
bool use_default_file;
@@ -209,13 +215,6 @@ struct preferences {
update_manager_prefs_t update_manager;
};
-enum def_file_behavior {
- UNDEFINED_DEFAULT_FILE,
- LOCAL_DEFAULT_FILE,
- NO_DEFAULT_FILE,
- CLOUD_DEFAULT_FILE
-};
-
extern struct preferences prefs, default_prefs, git_prefs;
extern const char *system_divelist_default_font;