mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Settings update: Add "Dive Computer" settings to SettingsObjectWrapper
For some reason, the dive computer settings weren't in the settings prefs. This moves it, makes the boilerplate on Settings ObjectWrapper and make things compile. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
b264c3e367
commit
db8e8957ab
9 changed files with 134 additions and 97 deletions
|
@ -49,6 +49,13 @@ typedef struct {
|
|||
char *next_check;
|
||||
} update_manager_prefs_t;
|
||||
|
||||
typedef struct {
|
||||
char *vendor;
|
||||
char *product;
|
||||
char *device;
|
||||
int download_mode;
|
||||
} dive_computer_prefs_t;
|
||||
|
||||
struct preferences {
|
||||
const char *divelist_font;
|
||||
const char *default_filename;
|
||||
|
@ -141,6 +148,7 @@ struct preferences {
|
|||
short cloud_timeout;
|
||||
locale_prefs_t locale; //: TODO: move the rest of locale based info here.
|
||||
update_manager_prefs_t update_manager;
|
||||
dive_computer_prefs_t dive_computer;
|
||||
};
|
||||
enum unit_system_values {
|
||||
METRIC,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue