mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Save profile settings to git
In order to streamline the view between desktop and mobile we need to save selected profile related settings to git. Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com>
This commit is contained in:
parent
6518b0db45
commit
d4dbd0bee7
5 changed files with 23 additions and 2 deletions
|
|
@ -3440,6 +3440,14 @@ void set_informational_units(char *units)
|
|||
}
|
||||
}
|
||||
|
||||
void set_git_prefs(char *prefs)
|
||||
{
|
||||
if (strstr(prefs, "TANKBAR"))
|
||||
git_prefs.tankbar = 1;
|
||||
if (strstr(prefs, "DCCEILING"))
|
||||
git_prefs.dcceiling = 1;
|
||||
}
|
||||
|
||||
void average_max_depth(struct diveplan *dive, int *avg_depth, int *max_depth)
|
||||
{
|
||||
int integral = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue