mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
Recmode: Disable gas switch options
Gas switch is not part of recreational mode, so disable the switch options. Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
d969cacfe2
commit
898ea6acb5
1 changed files with 6 additions and 0 deletions
|
@ -228,6 +228,8 @@ void PlannerSettingsWidget::disableDecoElements(int mode)
|
|||
ui.decopo2->setDisabled(true);
|
||||
ui.reserve_gas->setDisabled(false);
|
||||
ui.conservatism_lvl->setDisabled(true);
|
||||
ui.switch_at_req_stop->setDisabled(true);
|
||||
ui.min_switch_duration->setDisabled(true);
|
||||
}
|
||||
else if (mode == VPMB) {
|
||||
ui.gflow->setDisabled(true);
|
||||
|
@ -238,6 +240,8 @@ void PlannerSettingsWidget::disableDecoElements(int mode)
|
|||
ui.decopo2->setDisabled(false);
|
||||
ui.reserve_gas->setDisabled(true);
|
||||
ui.conservatism_lvl->setDisabled(false);
|
||||
ui.switch_at_req_stop->setDisabled(false);
|
||||
ui.min_switch_duration->setDisabled(false);
|
||||
}
|
||||
else if (mode == BUEHLMANN) {
|
||||
ui.gflow->setDisabled(false);
|
||||
|
@ -248,6 +252,8 @@ void PlannerSettingsWidget::disableDecoElements(int mode)
|
|||
ui.decopo2->setDisabled(false);
|
||||
ui.reserve_gas->setDisabled(true);
|
||||
ui.conservatism_lvl->setDisabled(true);
|
||||
ui.switch_at_req_stop->setDisabled(false);
|
||||
ui.min_switch_duration->setDisabled(false);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue