mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Mobile: Fix Configuration of Ceiling Display.
Fix the configuration of the deco ceilings in the mobile version: - make the settings work; - remove reading of the dive computer ceiling from git; - hide the gradient factor in the profile when the calculated ceiling is not shown; - when the calculated ceiling is disabled in the settings, disable editing of the gradient factor. Signed-off-by: Michael Keller <github@ike.ch>
This commit is contained in:
parent
2036c68972
commit
df1974a244
7 changed files with 14 additions and 9 deletions
|
@ -628,9 +628,11 @@ TemplatePage {
|
|||
}
|
||||
}
|
||||
TemplateLabel {
|
||||
enabled: PrefTechnicalDetails.calcceiling
|
||||
text: qsTr("GFLow")
|
||||
}
|
||||
TemplateSpinBox {
|
||||
enabled: PrefTechnicalDetails.calcceiling
|
||||
id: gfLow
|
||||
from: 10
|
||||
to: 150
|
||||
|
@ -645,9 +647,11 @@ TemplatePage {
|
|||
}
|
||||
}
|
||||
TemplateLabel {
|
||||
enabled: PrefTechnicalDetails.calcceiling
|
||||
text: qsTr("GFHigh")
|
||||
}
|
||||
TemplateSpinBox {
|
||||
enabled: PrefTechnicalDetails.calcceiling
|
||||
id: gfHigh
|
||||
from: 10
|
||||
to: 150
|
||||
|
|
|
@ -405,7 +405,6 @@ void QMLManager::openLocalThenRemote(QString url)
|
|||
qPrefCloudStorage::set_cloud_verification_status(qPrefCloudStorage::CS_VERIFIED);
|
||||
qPrefUnits::set_unit_system(git_prefs.unit_system);
|
||||
qPrefTechnicalDetails::set_tankbar(git_prefs.tankbar);
|
||||
qPrefTechnicalDetails::set_dcceiling(git_prefs.dcceiling);
|
||||
qPrefTechnicalDetails::set_show_ccr_setpoint(git_prefs.show_ccr_setpoint);
|
||||
qPrefTechnicalDetails::set_show_ccr_sensors(git_prefs.show_ccr_sensors);
|
||||
qPrefPartialPressureGas::set_po2(git_prefs.pp_graphs.po2);
|
||||
|
@ -878,7 +877,6 @@ void QMLManager::consumeFinishedLoad()
|
|||
git_prefs.units = SI_units;
|
||||
prefs.units = git_prefs.units;
|
||||
prefs.tankbar = git_prefs.tankbar;
|
||||
prefs.dcceiling = git_prefs.dcceiling;
|
||||
prefs.show_ccr_setpoint = git_prefs.show_ccr_setpoint;
|
||||
prefs.show_ccr_sensors = git_prefs.show_ccr_sensors;
|
||||
prefs.pp_graphs.po2 = git_prefs.pp_graphs.po2;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue