Flat View without files (2)

Have set up this button as an extra menu item in my flat view menu,

but I cannot get the menu icon to change

Is this possible ?

Not sure what you're trying to do. When do you want the "cloudmenu" icon to appear?

cloudmenu is just temporary icon, atm the menu button will show the grouped icon when Folders Only is selected
image
here is the flat view menu button atm
Flat View.dcf (2.6 KB)

Hmmm. Also there is an error with the button, using it and then turning it off, the files will stay hidden, using it again resolves the problem.

Could someone explain why this button works somehow unintuitive?
It's like this:

  1. open folder with some structure inside
  2. RMB onto button - select Folders only
    Structure being created with folders and files.
  3. RMB onto button - again
    Structure being created with folders only.

Also if you navigate one folder inside, now if files were inside, those will be still hidden.
Not a problem, but for some reason "I don't get it".

All this time was checking code of button itself, but not menu entry. :slight_smile:
And yea, in message above its mentioned about what I noticed (facepalm)

Because the "Folders Only" item in the menu from that post doesn't do what it says it does. Edit it and you'll see it's cycling through modes, probably by mistake.

The similar menu in the default toolbars works correctly, OTOH.