mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Add only switch at required stop option
Add the option to only switch at required stop to the planner UI. This is not actually used yet. Signed-off-by: Rick Walsh <rickmwalsh@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
cb1b6a3d30
commit
425020d2de
6 changed files with 27 additions and 4 deletions
|
@ -490,6 +490,12 @@ void DivePlannerPointsModel::setDropStoneMode(bool value)
|
|||
emit dataChanged(createIndex(0, 0), createIndex(rowCount() - 1, COLUMNS - 1));
|
||||
}
|
||||
|
||||
void DivePlannerPointsModel::setSwitchAtReqStop(bool value)
|
||||
{
|
||||
prefs.switch_at_req_stop = value;
|
||||
emit dataChanged(createIndex(0, 0), createIndex(rowCount() - 1, COLUMNS - 1));
|
||||
}
|
||||
|
||||
void DivePlannerPointsModel::setMinSwitchDuration(int duration)
|
||||
{
|
||||
prefs.min_switch_duration = duration * 60;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue