Toggle file ext button

This is a very minor thing but I'd like to fix it if possible. I have made a button that toggles file extensions (Set HIDEEXT=Toggle), the thing is that when file extension are hidden the status of the button is highlighted, like below...

image

and when they are shown it is not. I would like the reverse to be true so when file extension are hidden, the button should not be highlighted like below...

image

is this possible? I cannot see any way to do it, thanks in advance.

Add a line with @toggle:invert at the start of the command/button.

You are a legend as always Leo, that worked, thank you so much

1 Like

hello. i added this toggle to my previously highlighted button and now it doesn't highlight AT ALL. any chanсe to highlight when files are hidden?

@toggle:invert
Set HIDEFILTERATTR
Set SHOWFILTERATTR h

Try swapping the two commands. The highlight is based on the first line with a command on it.

1 Like

thanks. no need in toggle in this case )

1 Like