search: Do not consider filters if they are toggled off (#30162)

Closes #30134

This PR ensures that path filters are only applied to searches when the
filters are actually enabled (and visible).

Release Notes:

- Fixed the project search considering included and excluded filters
after toggling them off.
a127ff4a4fFinn Evers committed on 5/8/2025, 6:42:40 AM· committed by GitHubparentf16f430
1 file changedLine totals unavailable