Thanks, It is now fixed.
----------------------------------
ChatGPT gave these answers:
Turn off "Remember state of tree"
1. Open XYplorer.
2. Go to:
Tools → Configuration
3. In the left side of Configuration, select:
General → Tree and List → Tree
4. Find:
☑ Remember state of tree
5. Uncheck it.
6. Click OK.
That setting controls whether XYplorer remembers which folders in the left-hand tree were expanded.
But there is an important distinction
If your problem is specifically:
I expand Pictures → open a subfolder → browse around → close that folder → later open Pictures again, and all of its subfolders are still expanded.
Then turning off "Remember state of tree" may not be exactly what you want, because XYplorer can retain the tree's expansion state during the current session as well.
There is a more useful XYplorer feature called Auto-optimize tree. It automatically collapses non-current branches when you navigate.
Try:
Tools → Configuration → General → Tree and List → Tree → ☑ Auto-optimize tree
There is a specific combination that gets closest to the Windows Explorer behavior you described.
Use these settings.
Go to:
Tools → Configuration → General → Tree and List → Tree
Set the options as follows:
Setting Set it to
Auto-optimize tree ☑ ON
Expand tree nodes on browse ☐ OFF
Expand tree nodes on single click ☐ OFF
Remember state of tree ☐ OFF
The important one is Auto-optimize tree. XYplorer describes it as automatically collapsing non-current nodes in the Tree.
Then make one additional change
XYplorer has an INI tweak called:
AutoOptimizeTreeRadical=1
This makes the auto-optimization happen on each location change, rather than only under the normal Auto-optimize conditions.
The
XYplorer administrator specifically recommends this when Auto-optimize Tree isn't collapsing folders aggressively enough.
Auto reset tree from 2019
https://www.xyplorer.com/xyfc/viewtopic ... hatgpt.com