Calendar: Additionally respecting homefilters (#4733)

When collecting the activities for the planning calendar, only the
filter was used. Now the homefilter is considered as well.

See https://groups.google.com/g/golden-cheetah-developers/c/viSV80ze3r8/m/lbkJnG1jCAAJ
This commit is contained in:
Joachim Kohlhammer
2025-11-14 16:38:54 +01:00
committed by GitHub
parent e9270b5d1a
commit f21808d97c

View File

@@ -708,7 +708,8 @@ PlanningCalendarWindow::getActivities
|| rideItem == nullptr) {
continue;
}
if (context->isfiltered && ! context->filters.contains(rideItem->fileName)) {
if ( (context->isfiltered && ! context->filters.contains(rideItem->fileName))
|| (context->ishomefiltered && ! context->homeFilters.contains(rideItem->fileName))) {
continue;
}