diff options
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(); |