Show or Hide Folders in Folder Tree

I know that hidden folders in the folder tree can be turned on/off through the
checkbox under Preferences > Listers > Folder Tree.

But can this be done through a button instead. What I am looking for is a button configured a bit like Set HIDEFILTERATTR hs.

Can this be done?

Ta.