This..
- requires "AutoVars" addin: Event: AutoVars (event-handling for variables)
- toggles the filtering by using a single button
- toggles the "pressed" button-look
- works independently from the current selection (maintains it)
Since FILTERFLAGS=hide is used instead of HIDESEL, only those folders are affected, that really match the filter.
The variants posted before, would also hide currently selected folders that do not match the filter, just saying. o)
[code]@toggle:if $src:HiddenFolders<512kb
@ifset:$src:HiddenFolders<512kb
@set src:HiddenFolders<512kb
@set src:HiddenFolders<512kb.bfc.drop
Select NOPATTERN SHOWHIDDEN
@ifset:else
@set src:HiddenFolders<512kb=1
@set src:HiddenFolders<512kb.bfc.drop=always
Select "Folders below 512KB" FILTER FILTERFLAGS=hide[/code]