summaryrefslogtreecommitdiffstats
path: root/mobile-widgets
diff options
context:
space:
mode:
authorGravatar Joakim Bygdell <j.bygdell@gmail.com>2017-02-04 10:42:00 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-02-05 11:59:47 -0800
commit11dcae436eed5c684077b5a5e2b20d73fbebcca9 (patch)
treead6b368d69ef01e9645bed674003f3fffc14b304 /mobile-widgets
parentd4dbd0bee78702116cbf389721cff17bfe52dbc2 (diff)
downloadsubsurface-11dcae436eed5c684077b5a5e2b20d73fbebcca9.tar.gz
MOBILE: Read profile settings from git
Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com>
Diffstat (limited to 'mobile-widgets')
-rw-r--r--mobile-widgets/qmlmanager.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp
index 31936b6ee..422320fdc 100644
--- a/mobile-widgets/qmlmanager.cpp
+++ b/mobile-widgets/qmlmanager.cpp
@@ -155,6 +155,8 @@ void QMLManager::openLocalThenRemote(QString url)
if (informational_prefs.unit_system == IMPERIAL)
informational_prefs.units = IMPERIAL_units;
prefs.units = informational_prefs.units;
+ prefs.tankbar = git_prefs.tankbar;
+ prefs.dcceiling = git_prefs.dcceiling;
process_dives(false, false);
DiveListModel::instance()->clear();
DiveListModel::instance()->addAllDives();
@@ -540,6 +542,8 @@ void QMLManager::consumeFinishedLoad(timestamp_t currentDiveTimestamp)
if (informational_prefs.unit_system == IMPERIAL)
informational_prefs.units = IMPERIAL_units;
prefs.units = informational_prefs.units;
+ prefs.tankbar = git_prefs.tankbar;
+ prefs.dcceiling = git_prefs.dcceiling;
DiveListModel::instance()->clear();
process_dives(false, false);
DiveListModel::instance()->addAllDives();