mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Fix deco_mode confusion
We have two prefernces determining the deco_mode (BUEHLMANN vs VPMB vs RECREATIONAL): One for the planner (deco_mode) and one for displaying dives (display_deco_mode). The former is set in the planner settings while the latter is set in the preferences. This patch clears up a confusion which of the two to use by introducing a helper function that selects the correct variable. Signed-off-by: Robert C. Helling <helling@atdotde.de>
This commit is contained in:
parent
4e375f56a8
commit
bb4bf639c3
8 changed files with 36 additions and 24 deletions
|
|
@ -40,6 +40,7 @@ bool parseGpsText(const QString &gps_text, double *latitude, double *longitude);
|
|||
QByteArray getCurrentAppState();
|
||||
void setCurrentAppState(QByteArray state);
|
||||
extern "C" bool in_planner();
|
||||
extern "C" enum deco_mode decoMode();
|
||||
extern "C" void subsurface_mkdir(const char *dir);
|
||||
void init_proxy();
|
||||
QString getUUID();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue