Cycle Through Flat View

I want a button to cycle through Flat View:
Off / Grouped / MixedNoFolders

It seems it's not that easy. I also have seen a bug where you click several times, in Grouped mode, you don't see the folders anymore.

This doesn't work.
Set FLATVIEW=Toggle,Grouped,MixedNoFolders

@ifset:FLATVIEW=Off
Set FLATVIEW=Grouped
@ifset:FLATVIEW=Grouped
Set FLATVIEW=MixedNoFolders
@ifset:FLATVIEW=MixedNoFolders
Set FLATVIEW=Off
1 Like

Thank you. And if you add "Mixed" you have all FlatView states:

@ifset:FLATVIEW=Off
Set FLATVIEW=Grouped
@ifset:FLATVIEW=Grouped
Set FLATVIEW=Mixed
@ifset:FLATVIEW=Mixed
Set FLATVIEW=MixedNoFolders
@ifset:FLATVIEW=MixedNoFolders
Set FLATVIEW=Off

Thanks once again! :smiley:

You should find a button you can adapt for this in the default toolbars, toward the top-right:

It uses Mixed, not Mixed+NoFolders, but that's a simple change.

1 Like

And this works, too:
FlatView1
But why this doesn't work?
FlatView2

Can you explain briefly? :smiley:

It looks OK from a quick inspection. Maybe there's something subtly wrong I haven't spotted. Does the one that works do the job you need or do you need it to do something different?

No, I thought the second looks more "logical" than the other but the first works just fine. The second does not work how it should (in my opinion):

@toggle:if Set FLATVIEW=Toggle
@icon:flatviewgrouped,Set FLATVIEW=Grouped
@icon:flatviewmixed,Set FLATVIEW=Mixed
@icon:flatviewmixednofolders,Set FLATVIEW=MixedNoFolders

@if:Set FLATVIEW=Grouped
Set FLATVIEW=On,Mixed
@if:Set FLATVIEW=Mixed
Set FLATVIEW=On,MixedNoFolders
@if:Set FLATVIEW=MixedNoFolders
Set FLATVIEW=On,Grouped
@if:else
Set FLATVIEW=Off

In the second one, if Flatview is off to begin with then there's nothing that will turn it on.
All the @if clauses are testing for various "on" states, and the final "else" clause turns it off. Nothing actually turns it on.

2 Likes

Wow thanks. I didn't notice that the same exact button literally exist in front of my eyes!

2 Likes

Thank you, now I understand. Then the order should look like:

@toggle:if Set FLATVIEW=Toggle
@icon:flatviewgrouped,Set FLATVIEW=Grouped
@icon:flatviewmixed,Set FLATVIEW=Mixed
@icon:flatviewmixednofolders,Set FLATVIEW=MixedNoFolders

@if:Set FLATVIEW=Off
Set FLATVIEW=On,Grouped
@if:Set FLATVIEW=Grouped
Set FLATVIEW=On,Mixed
@if:Set FLATVIEW=Mixed
Set FLATVIEW=On,MixedNoFolders
@if:Set FLATVIEW=MixedNoFolders
Set FLATVIEW=Off

referred to:

Aufnahme031

:+1:t2:

thank you! thank you! thank you! thank you! thank you!!!!

i set this to a hotkey "F7" so i cycle thru at lightening speed! :slight_smile:

1 Like