FileChooserDialogBox Class : Replace button text "Open" by "Save" or else?

I use a fileChooser to select a path where some files will be saved.

Is there a way to replace the native button “Open” to “Save” or “Export” or else?

Thanks

Damien

It says ‘Save’ if you set the folder flags

myChooser = std::make_unique<FileChooser>("SAVE preset...",
		File::getSpecialLocation(File::userHomeDirectory),
		"*.pgm");

auto folderChooserFlags = FileBrowserComponent::saveMode;

myChooser->launchAsync(folderChooserFlags, [this](const FileChooser& chooser)
...

1 Like

Working! thanks for your help, I was using the wrong call with browseForDirectory() and a sync call.

Thanks