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>
This commit is contained in:
Joakim Bygdell 2017-02-05 10:56:43 +01:00 committed by Dirk Hohndel
parent 11ccadbab5
commit 12c33a038f

View file

@ -700,6 +700,14 @@ void ProfileWidget2::plotDive(struct dive *d, bool force)
#ifndef SUBSURFACE_MOBILE #ifndef SUBSURFACE_MOBILE
rulerItem->setPlotInfo(plotInfo); rulerItem->setPlotInfo(plotInfo);
#endif #endif
#ifdef SUBSURFACE_MOBILE
if (currentdc->divemode == CCR) {
tankItem->setVisible(false);
} else {
tankItem->setVisible(prefs.tankbar);
}
#endif
tankItem->setData(dataModel, &plotInfo, &displayed_dive); tankItem->setData(dataModel, &plotInfo, &displayed_dive);
dataModel->emitDataChanged(); dataModel->emitDataChanged();