diff options
author | Joakim Bygdell <j.bygdell@gmail.com> | 2017-02-05 10:56:43 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-02-05 12:20:33 -0800 |
commit | 12c33a038f1e2f33b7b0e09e0394684115e630ea (patch) | |
tree | 285c74583352cb660b142495b36f569acff457e6 /profile-widget | |
parent | 11ccadbab5a8da5a43410b23ffb7b96f5c850051 (diff) | |
download | subsurface-12c33a038f1e2f33b7b0e09e0394684115e630ea.tar.gz |
Mobile: Do not show tankbar for CCR dives
If we are showing the setpoint and sensor pO2 we need the space.
Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com>
Diffstat (limited to 'profile-widget')
-rw-r--r-- | profile-widget/profilewidget2.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/profile-widget/profilewidget2.cpp b/profile-widget/profilewidget2.cpp index df879fbb8..d368f6af7 100644 --- a/profile-widget/profilewidget2.cpp +++ b/profile-widget/profilewidget2.cpp @@ -700,6 +700,14 @@ void ProfileWidget2::plotDive(struct dive *d, bool force) #ifndef SUBSURFACE_MOBILE rulerItem->setPlotInfo(plotInfo); #endif + +#ifdef SUBSURFACE_MOBILE + if (currentdc->divemode == CCR) { + tankItem->setVisible(false); + } else { + tankItem->setVisible(prefs.tankbar); + } +#endif tankItem->setData(dataModel, &plotInfo, &displayed_dive); dataModel->emitDataChanged(); |