mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Deco mode for plannining is not deco mode for showing
We had (in the wrong place, imo) a new feature that should differentiate the different deco_modes, you could plan your dive in buelhman and see it in vpm-b, for instance but both of them accessed the same pref. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
c110b4a238
commit
37e3e7e69a
6 changed files with 34 additions and 9 deletions
|
@ -25,13 +25,14 @@ void PreferencesGraph::refreshSettings()
|
|||
ui->maxpo2->setValue(prefs.modpO2);
|
||||
ui->red_ceiling->setChecked(prefs.redceiling);
|
||||
|
||||
if (prefs.deco_mode == BUEHLMANN) {
|
||||
if (prefs.display_deco_mode == BUEHLMANN) {
|
||||
ui->buehlmann->setChecked(true);
|
||||
ui->vpmb->setChecked(false);
|
||||
} else {
|
||||
ui->buehlmann->setChecked(false);
|
||||
ui->vpmb->setChecked(false);
|
||||
}
|
||||
|
||||
ui->gflow->setValue(prefs.gflow);
|
||||
ui->gfhigh->setValue(prefs.gfhigh);
|
||||
ui->vpmb_conservatism->setValue(prefs.vpmb_conservatism);
|
||||
|
@ -70,6 +71,7 @@ void PreferencesGraph::syncSettings()
|
|||
tech->setShowCCRSensors(ui->show_ccr_sensors->isChecked());
|
||||
tech->setDisplayUnusedTanks(ui->display_unused_tanks->isChecked());
|
||||
tech->setShowAverageDepth(ui->show_average_depth->isChecked());
|
||||
tech->setDecoMode(ui->vpmb->isChecked() ? VPMB : BUEHLMANN);
|
||||
}
|
||||
|
||||
#define DANGER_GF (gf > 100) ? "* { color: red; }" : ""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue