diff options
Diffstat (limited to 'core/qthelper.cpp')
-rw-r--r-- | core/qthelper.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/qthelper.cpp b/core/qthelper.cpp index 088067f26..fc9675279 100644 --- a/core/qthelper.cpp +++ b/core/qthelper.cpp @@ -1437,6 +1437,11 @@ extern "C" bool in_planner() return (currentApplicationState == "PlanDive" || currentApplicationState == "EditPlannedDive"); } +extern "C" enum deco_mode decoMode() +{ + return in_planner() ? prefs.deco_mode : prefs.display_deco_mode; +} + void init_proxy() { QNetworkProxy proxy; |