Is there a simple way to keep the state of the FileBrowserComponent between refresh ? open/closed node and selected file ?
I use a FileBrowser to drag & drop file in a directory (and also to delete file) and when I refresh the component I would like to see the FileBrowser in the same state it was before my actions.
I tried to use the method "setFileName" to select a file (it could be nice to be able to select an array a file) and atleast open a subdirectory but no node is open in the Treeview.
I got the FileTreeComponent and use getOpennessState and restoreOpennessState to try and restore my FileBrowserComponent tree state.
But also I can see that the tree is restore to its previous state (breakpoint in TreeViewItem::restoreOpennessState) when the FileBrowserComponent is display, the tree state is the one by default (all node closed and no selected item).
Yes I think I could update just the treeitems with the files I add or remove. But I don't know what kind of issue that could create with the FileBrowserComponent containing said treeitems and what would happen when I use the FileBrowserComponent methods afterward.