From bd0c99dfb7146d91021ebb3bd7b020b76573fabc Mon Sep 17 00:00:00 2001 From: Joakim Bygdell Date: Sat, 25 Mar 2017 13:03:37 +0100 Subject: 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 --- mobile-widgets/qmlmanager.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'mobile-widgets') 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(); -- cgit v1.2.3-70-g09d2