mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
41b4e4a19a
commit
1985bcb29e
3 changed files with 5 additions and 2 deletions
|
@ -1036,7 +1036,7 @@ void DivePlannerPointsModel::computeVariations(struct diveplan *original_plan, s
|
|||
return;
|
||||
}
|
||||
|
||||
if(in_planner() && prefs.display_variations) {
|
||||
if(in_planner() && prefs.display_variations && decoMode() != RECREATIONAL) {
|
||||
int my_instance = ++instanceCounter;
|
||||
cache_deco_state(&ds, &save);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue