mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
Altitude scale present with no altitude data.
Uncheck the channel if not present. Fixes #295.
This commit is contained in:
@@ -616,12 +616,16 @@ AllPlotWindow::setAllPlotWidgets(RideItem *ride)
|
||||
showCad->setEnabled(dataPresent->cad);
|
||||
showAlt->setEnabled(dataPresent->alt);
|
||||
|
||||
showHr->setChecked(dataPresent->hr);
|
||||
showSpeed->setChecked(dataPresent->kph);
|
||||
showCad->setChecked(dataPresent->cad);
|
||||
showAlt->setChecked(dataPresent->alt);
|
||||
} else {
|
||||
showPower->setEnabled(false);
|
||||
showHr->setEnabled(false);
|
||||
showSpeed->setEnabled(false);
|
||||
showCad->setEnabled(false);
|
||||
showAlt->setEnabled(false);
|
||||
showPower->setEnabled(false);
|
||||
showHr->setEnabled(false);
|
||||
showSpeed->setEnabled(false);
|
||||
showCad->setEnabled(false);
|
||||
showAlt->setEnabled(false);
|
||||
}
|
||||
|
||||
// turn on/off shading, if it's not available
|
||||
|
||||
Reference in New Issue
Block a user