Skip to content

Commit

Permalink
Fix FileChooser in FilePropertyComponent
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiashienzsch committed Oct 24, 2023
1 parent ee4893c commit 06d85f3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tools/jml_tools/property/FilePropertyComponent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ auto FilePropertyComponent::launchFileChooser() -> void
{
using juce::FileBrowserComponent;

auto options = _options.selectDirectory ? FileBrowserComponent::canSelectDirectories
: FileBrowserComponent::openMode;
auto options = static_cast<int>(FileBrowserComponent::openMode);
options |= _options.selectDirectory ? FileBrowserComponent::canSelectDirectories
: FileBrowserComponent::canSelectFiles;

auto dir = juce::File{getValue().toString()};
if (not dir.isDirectory()) {
Expand Down

0 comments on commit 06d85f3

Please sign in to comment.