FileBrowserComponent - Displayed file list is not refreshed when deleting directory's last file

#1

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

0 Likes

#2

This should be fixed on the develop branch now with commit 363d86c, thanks for reporting.

0 Likes

#3

Thank you very much Ed. I was really wondering if I had misunderstood something.
I’m glad you could fix this issue.

0 Likes