mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Mobile: Fix Configuration of Ceiling Display.
Fix the configuration of the deco ceilings in the mobile version: - make the settings work; - remove reading of the dive computer ceiling from git; - hide the gradient factor in the profile when the calculated ceiling is not shown; - when the calculated ceiling is disabled in the settings, disable editing of the gradient factor. Signed-off-by: Michael Keller <github@ike.ch>
This commit is contained in:
parent
2036c68972
commit
df1974a244
7 changed files with 14 additions and 9 deletions
|
@ -3048,8 +3048,6 @@ void set_git_prefs(const char *prefs)
|
|||
{
|
||||
if (strstr(prefs, "TANKBAR"))
|
||||
git_prefs.tankbar = 1;
|
||||
if (strstr(prefs, "DCCEILING"))
|
||||
git_prefs.dcceiling = 1;
|
||||
if (strstr(prefs, "SHOW_SETPOINT"))
|
||||
git_prefs.show_ccr_setpoint = 1;
|
||||
if (strstr(prefs, "SHOW_SENSORS"))
|
||||
|
|
|
@ -121,6 +121,8 @@ extern struct divecomputer *get_dive_dc(struct dive *dive, int nr);
|
|||
extern const struct divecomputer *get_dive_dc_const(const struct dive *dive, int nr);
|
||||
extern timestamp_t dive_endtime(const struct dive *dive);
|
||||
|
||||
extern void set_git_prefs(const char *prefs);
|
||||
|
||||
extern struct dive *make_first_dc(const struct dive *d, int dc_number);
|
||||
extern struct dive *clone_delete_divecomputer(const struct dive *d, int dc_number);
|
||||
void split_divecomputer(const struct dive *src, int num, struct dive **out1, struct dive **out2);
|
||||
|
|
|
@ -227,7 +227,6 @@ extern void subsurface_OS_pref_setup();
|
|||
extern void copy_prefs(struct preferences *src, struct preferences *dest);
|
||||
|
||||
extern void set_informational_units(const char *units);
|
||||
extern void set_git_prefs(const char *prefs);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue