Hello,
I’m new to Juce, and I’m trying to use FileBrowserComponent. It’s globally ok, but I can’t get rid the following problem:
When a directory’s last file (or directory) is deleted, the corresponding raw (actually the first one) is not refreshed and the file name is still displayed after deletion.
My understanding is that when the file list gets empty, the raws are not redrawn at all (drawFileBrowserRow is not called).
This problem occurs only when deleting the last file. If there is more than 1 file in the directory, the displayed file list is updated correctly.
Any advice will be very helpful!
Edit: the FileBrowserComponent is created with flags:
FileBrowserComponent::saveMode | FileBrowserComponent::canSelectFiles | FileBrowserComponent::canSelectDirectories