Title says it all. I have a method that selects all files but skips directories but it fails because the internal file list is not refreshed when the openess of a directory is changed.
There's a method FileTreeComponent::refresh() that you can call if you want it to refresh itself.
Yes I know, but shouldn't it call refresh() in the itemOpenessChanged() callback of the TreeViewItem?
Since the FileTreeComponent is a ready made component, I would rather not hack around in its internals.
There's no particular reason why it would refresh more often than you ask it to - that could be an expensive operation if the folders are very large, so it'll just refresh the first time a folder is opened.