When using the Juce (non-native) FileChooser and browseForFileToOpen, the “open” button is enabled even when a file is not selected, or when a folder is selected:
FileChooser fileChooser("Hello", File(), String(), false); bool success = fileChooser.browseForFileToOpen();
When using the code above, the “open” button is directly enabled, whereas nothing is selected. Unless I’m wrong, the doc states “it won’t allow non-existent files or directories to be chosen”.
The getResult method returns a path to the folder in these conditions.
I’m using the latest tip on Master. Isn’t there a regression? Because I’m pretty sure it was working some times ago. It happens on Windows, but also on Linux apparently.