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:
parent
11ccadbab5
commit
12c33a038f
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user