Do not show the heartrate info unconditionally.
use the preferences instead. Fixes #664 Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
committed by
Dirk Hohndel
parent
3c941c2fb2
commit
fcbe6bfc13
@@ -454,10 +454,8 @@ void ProfileWidget2::plotDive(struct dive *d, bool force)
|
|||||||
heartBeatAxis->setMinimum(pInfo.minhr);
|
heartBeatAxis->setMinimum(pInfo.minhr);
|
||||||
heartBeatAxis->setMaximum(pInfo.maxhr);
|
heartBeatAxis->setMaximum(pInfo.maxhr);
|
||||||
heartBeatAxis->updateTicks(HR_AXIS); // this shows the ticks
|
heartBeatAxis->updateTicks(HR_AXIS); // this shows the ticks
|
||||||
heartBeatAxis->setVisible(true);
|
|
||||||
} else {
|
|
||||||
heartBeatAxis->setVisible(false);
|
|
||||||
}
|
}
|
||||||
|
heartBeatAxis->setVisible(prefs.hrgraph && pInfo.maxhr);
|
||||||
|
|
||||||
timeAxis->setMaximum(maxtime);
|
timeAxis->setMaximum(maxtime);
|
||||||
int i, incr;
|
int i, incr;
|
||||||
|
|||||||
Reference in New Issue
Block a user