Disable plan variation in recreational mode

Calculating variations when in recreational mode doesn't make sense, and can
prevent variations from being calculated when switching back to Buhlmann or
VPM-B modes.

Signed-off-by: Rick Walsh <rickmwalsh@gmail.com>
This commit is contained in:
Rick Walsh 2017-12-01 09:06:46 +11:00 committed by Dirk Hohndel
parent 41b4e4a19a
commit 1985bcb29e
3 changed files with 5 additions and 2 deletions

View file

@ -110,7 +110,7 @@ void add_plan_to_notes(struct diveplan *diveplan, struct dive *dive, bool show_d
get_current_date());
}
if (prefs.display_variations)
if (prefs.display_variations && decoMode() != RECREATIONAL)
len += snprintf(buffer + len, sz_buffer - len, translate("gettextFromC", "Runtime: %dmin %s"),
diveplan_duration(diveplan), "VARIATIONS<br></div>");
else