project panel: do not expand collapsed worktrees on "collapse all entries" (#10687)

Fixes #10597

Release Notes:

- Fixed "project panel: collapse all entries" expanding collapsed
worktrees.
b9e0269991Piotr Osiewicz committed on 4/17/2024, 8:55:20 PM· committed by GitHubparent4f2214e
1 file changedLine totals unavailable