Fix layering violations in DivePlannerPointsModel.

Signed-off-by: Michael Keller <mikeller@042.ch>
This commit is contained in:
Michael Keller 2024-08-23 10:30:15 +12:00
parent 2d8e343221
commit 14b9074f40
4 changed files with 11 additions and 7 deletions

View file

@ -235,7 +235,10 @@ public slots:
void set_ascrate75(int value) { DivePlannerPointsModel::instance()->setAscrate75Display(value); }
void set_descrate(int value) { DivePlannerPointsModel::instance()->setDescrateDisplay(value); }
void set_dive_mode(DIVE_MODE value) { DivePlannerPointsModel::instance()->setDiveMode((int)value); }
void set_dive_mode(DIVE_MODE value) {
//TODO: Actually change the dive mode in the dive here - this will need untangling to enable access to the dive
DivePlannerPointsModel::instance()->cylindersChanged();
}
void set_planner_deco_mode(DECO_MODE value) { PlannerShared::set_planner_deco_mode((deco_mode)value); }
void set_reserve_gas(int value) { PlannerShared::set_reserve_gas(value); }
void set_safetystop(bool value) { DivePlannerPointsModel::instance()->setSafetyStop(value); }