diff options
author | Joakim Bygdell <j.bygdell@gmail.com> | 2017-03-25 13:03:37 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-03-26 21:57:57 -0700 |
commit | bd0c99dfb7146d91021ebb3bd7b020b76573fabc (patch) | |
tree | 611771940bca8dd64a9f7eb7583c0bdbcfd49297 /mobile-widgets/qmlmanager.cpp | |
parent | ae7913599c1c226f1ce46ca295f9b5e478d0da16 (diff) | |
download | subsurface-bd0c99dfb7146d91021ebb3bd7b020b76573fabc.tar.gz |
MOBILE: Display pO2 and Setpoint for CCR dives
For CCR dives we want to display the setpoint and pO2 information,
due to the limited screensize we have to remove the temperature graph or
the view will be to cluttered.
Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com>
Diffstat (limited to 'mobile-widgets/qmlmanager.cpp')
-rw-r--r-- | mobile-widgets/qmlmanager.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp index b84ab61f8..a834259f7 100644 --- a/mobile-widgets/qmlmanager.cpp +++ b/mobile-widgets/qmlmanager.cpp @@ -159,6 +159,9 @@ void QMLManager::openLocalThenRemote(QString url) 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; process_dives(false, false); DiveListModel::instance()->clear(); DiveListModel::instance()->addAllDives(); @@ -548,6 +551,9 @@ void QMLManager::consumeFinishedLoad(timestamp_t currentDiveTimestamp) 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; DiveListModel::instance()->clear(); process_dives(false, false); DiveListModel::instance()->addAllDives(); |