mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Merge informational_prefs into git_prefs
There is no need to have two variables for the same purpose. [Dirk Hohndel: changed to keep the two separate functions as otherwise we no longer parse existing repos successfully] Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
12c33a038f
commit
0277d5aacc
5 changed files with 39 additions and 26 deletions
|
@ -865,6 +865,12 @@ static void save_settings(git_repository *repo, struct dir *tree)
|
|||
put_string(&b, "prefs TANKBAR\n");
|
||||
if (prefs.dcceiling)
|
||||
put_string(&b, "prefs DCCEILING\n");
|
||||
if (prefs.show_ccr_setpoint)
|
||||
put_string(&b, "prefs SHOW_SETPOINT\n");
|
||||
if (prefs.show_ccr_sensors)
|
||||
put_string(&b, "prefs SHOW_SENSORS\n");
|
||||
if (prefs.pp_graphs.po2)
|
||||
put_string(&b, "prefs PO2_GRAPH\n");
|
||||
|
||||
blob_insert(repo, tree, &b, "00-Subsurface");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue