Fixed the file pattern hiding implementation to refresh the filtered items when collapsing/expanding a folder