mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-01 06:30:26 +00:00
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
1 changed files with 8 additions and 0 deletions
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue