mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
prefer most recent season in CP plot
This commit is contained in:
@@ -222,6 +222,12 @@ void CriticalPowerWindow::addSeasons()
|
||||
season = seasons.at(i);
|
||||
cComboSeason->addItem(season.getName());
|
||||
}
|
||||
if (!seasons.empty()) {
|
||||
cComboSeason->setCurrentIndex(cComboSeason->count() - 1);
|
||||
Season season = seasons.last();
|
||||
cpintPlot->setStartDate(season.getStart());
|
||||
cpintPlot->setEndDate(season.getEnd());
|
||||
}
|
||||
}
|
||||
|
||||
void CriticalPowerWindow::seasonSelected(int iSeason)
|
||||
|
||||
Reference in New Issue
Block a user