diff options
author | willemferguson <willemferguson@zoology.up.ac.za> | 2019-11-28 10:47:12 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-12-03 20:37:57 -0800 |
commit | 7dc8a9850db1f33fcccdfec393b431c50ff05b42 (patch) | |
tree | d6f13eb616a6d5bfcf221650734fb5c92ee64bd9 /core/settings/qPrefGeneral.cpp | |
parent | 33e49637ec6a99c50ad56bfbfc88b4e925d01e7d (diff) | |
download | subsurface-7dc8a9850db1f33fcccdfec393b431c50ff05b42.tar.gz |
Desktop: handle environmental states in Information tab
Create a preference setting on the General Settings page. The setting is saved
with the other preferences.
Signed-off-by: willemferguson <willemferguson@zoology.up.ac.za>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/settings/qPrefGeneral.cpp')
-rw-r--r-- | core/settings/qPrefGeneral.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/settings/qPrefGeneral.cpp b/core/settings/qPrefGeneral.cpp index c0e8026fe..a04198d7a 100644 --- a/core/settings/qPrefGeneral.cpp +++ b/core/settings/qPrefGeneral.cpp @@ -38,6 +38,7 @@ void qPrefGeneral::loadSync(bool doSync) disk_use_default_file(doSync); disk_filterFullTextNotes(doSync); disk_filterCaseSensitive(doSync); + disk_extraEnvironmentalDefault(doSync); if (!doSync) { load_diveshareExport_uid(); @@ -93,6 +94,8 @@ HANDLE_PREFERENCE_INT(General, "o2consumption", o2consumption); HANDLE_PREFERENCE_INT(General, "pscr_ratio", pscr_ratio); +HANDLE_PREFERENCE_BOOL(General, "extraEnvironmentalDefault", extraEnvironmentalDefault); + HANDLE_PREFERENCE_BOOL(General, "use_default_file", use_default_file); HANDLE_PROP_QSTRING(General, "diveshareExport/uid", diveshareExport_uid); |