Commit b5c551eb authored by Axel Howind's avatar Axel Howind

change default mode

parent e8f07b5c
Pipeline #56622265 failed with stages
in 16 minutes and 21 seconds
......@@ -111,7 +111,7 @@ public class OptionsPane extends GridPane implements InputControl<OptionValues>{
} else if (option instanceof Option.FileOption) {
Option.FileOption fop = (Option.FileOption) option;
Supplier<File> dfltValue = () -> fop.getDefault().get();
InputBuilder.FileDialogMode mode = fop.getMode().includes(OpenMode.READ) ? InputBuilder.FileDialogMode.OPEN : InputBuilder.FileDialogMode.SAVE;
InputBuilder.FileDialogMode mode = fop.getMode().includes(OpenMode.WRITE) ? InputBuilder.FileDialogMode.SAVE : InputBuilder.FileDialogMode.OPEN;
FileChooser.ExtensionFilter filters = new FileChooser.ExtensionFilter("supported Files", fop.getExtensions());
InputControl<File> fileInputControl = InputControl.chooseFile(
dfltValue,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment