"Collapse all" button act like "Expand all" when folders are unfolded manually

+1 thanks, same issue on MacOS, iirc this issue did not occur in older versions