Rename prefs.deco_mode to prefs.planner_deco_mode

This is to avoid confusion with planner.display_deco_mode.
When accessing the "current deco mode" use the decoMode()
helper function.

Signed-off-by: Robert C. Helling <helling@atdotde.de>
This commit is contained in:
Robert C. Helling 2017-01-07 03:11:19 +01:00 committed by Subsurface
parent bb4bf639c3
commit 935734100f
7 changed files with 20 additions and 20 deletions

View file

@ -1439,7 +1439,7 @@ extern "C" bool in_planner()
extern "C" enum deco_mode decoMode()
{
return in_planner() ? prefs.deco_mode : prefs.display_deco_mode;
return in_planner() ? prefs.planner_deco_mode : prefs.display_deco_mode;
}
void init_proxy()