FileBrowserListener selectionChanged called twice when using FileBrowserComponent::useTreeView


#1

FileBrowserListener::selectionChanged gets called twice when using FileBrowserComponent::useTreeView When using the default “ListBox” style, selectionChanged only gets called once. Is this expected behavior?


#2

I guess this works fine because FileBrowserComponent::getHighlightedFile() returns an “invalid” file for the first call in the double call.