FileChooserDialogBox has no member named ‘show’

JUCE 6.1.2 bug on Linux Debian
error: ‘class juce::FileChooserDialogBox’ has no member named ‘show’

Everything works in JUCE 6.0.1.

JUCE/modules/juce_gui_basics/filebrowser/juce_FileChooserDialogBox.h

#if JUCE_MODAL_LOOPS_PERMITTED
    /** Displays and runs the dialog box modally.

        This will show the box with the specified size, returning true if the user
        pressed 'ok', or false if they cancelled.

        Leave the width or height as 0 to use the default size
    */
    bool show (int width = 0, int height = 0);

    /** Displays and runs the dialog box modally.

        This will show the box with the specified size at the specified location,
        returning true if the user pressed 'ok', or false if they cancelled.

        Leave the width or height as 0 to use the default size.
    */
    bool showAt (int x, int y, int width, int height);
   #endif

Use of modal loops was disabled by default in Juce 6.1 and use of the async APIs is now recommended.

But as a quick workaround you can define JUCE_MODAL_LOOPS_PERMITTED=1 for your build.

1 Like

Got it, thanks!