Have anyone tried the getOpennessState / restoreOpennessState functionality for FileTreeComponent ?
It is working but it restores only one level of the directories tree.
I mean that if I have for example “c:\aaa\bbbb\ccc\ddd” path fully opened in FileTreeComponent , then after saving component state with getOpennessState and restoring with restoreOpennessState I’m only getting the “aaa” directory opened and all the inner directories closed.
If after that, I’ll call restoreOpennessState one more time (after some delay and with the same parameter) - FileTreeComponent opens one more directory =)
As far as I got it looking through the code, the cause is somewhere in FileListTreeItem::itemOpennessChanged (bool isNowOpen) - that is called from restoreOpennessState .
New fdirectory data is just not ready for next restoreOpennessState iteration and the sate cannot be restored correctly, or something =)