Only global filters affect the folder tree, since it is not affected by folder formats.
I recommend turning on the global option to filter out hidden files.
When you want to see everything, use the Show Everything feature, which disables all filtering with a single click.
Both are shown here: Toggle display of Hidden / System files