Page 1 of 1

Auto reset tree.

Posted: 17 Sep 2019 15:32
by Max_T
Is there a way, even if through scripting, to have each tab automatically reset the tree?

At the moment, when you switch between tabs, it keeps all the folders expanded from other tabs and the tree view can become quite cluttered, quite fast.
I don't want to use the mini tree feature, because that collapses everything to the single, current folder. I want it to behave like when you reset the tree from the view menu.
I want, when I click on a different tab, it should sort of automatically perform a "reset tree" command, or act like a reset tree command was performed.

Re: Auto reset tree.

Posted: 17 Sep 2019 15:35
by admin
Simply tick this:

Configuration | General | Tree and List | Tree | Auto-optimize tree

Re: Auto reset tree.

Posted: 17 Sep 2019 16:08
by Max_T
I do have it ticked, but it doesn't do anything. If I untick it, it makes no difference.

Re: Auto reset tree.

Posted: 17 Sep 2019 16:11
by admin
Please check if this is set to 1 in XYplorer.ini:

Code: Select all

AutoOptimizeTreeRadical=1

Re: Auto reset tree.

Posted: 17 Sep 2019 16:19
by Max_T
That solved the problem. Thank you very much!

I tested it, for some reason it wouldn't save it to the file. When I closed Xyplorer, it reset it back to 0 again.

Re: Auto reset tree.

Posted: 17 Sep 2019 17:25
by admin
How to tweak: https://www.xyplorer.com/faq-topic.php?id=tweak

By factory default this setting is AutoOptimizeTreeRadical=1 since v19.40.0004 - 2018-11-25 17:29. Maybe you have an older version.

Re: Auto reset tree.

Posted: 19 Oct 2019 15:12
by albiss
@Max_T

XYplorer must be closed before saving. 8)

Re: Auto reset tree.

Posted: 26 Jan 2023 15:24
by Borut
Maybe this is a good place to describe my problem...

Since the beginning of time I have:

Code: Select all

AutoOptimizeTreeRadical=1
Auto-optimize tree checked
After I open a lot of tabs via SC, where the address of the each one points somewhere in the network, I then.... Visit one tab: Target folder expanded, as expected. I then visit some other tab: Both the addressed folder of this tab AND of the previously visited tab are expanded. The expanded folders continue to accumulate with the visit of each new tab...

I think that I am noticing this for some months now. It definitely did not start with the current version, but way before. Am I just dreaming that this was not the case before? Or am I the only one to see this (settings?)?

Any ideas? Can you people recreate this behavior? Thanks.

Re: Auto reset tree.

Posted: 28 Jan 2023 10:25
by admin
Confirmed. Fixed in next beta.

Re: Auto reset tree. --- [Solved] Auto-optimize tree under "Network"

Posted: 28 Jan 2023 15:52
by Borut
Auto-optimize tree under "Network" - Solved in v24.00.0104 - 2023-01-28 13:34.

Many thanks! :tup: :beer: