TheJacksonLaboratory / Gopher

GOPHER documentation
https://thejacksonlaboratory.github.io/Gopher/
Other
1 stars 1 forks source link

Display of hidden files when selecting a file #389

Closed hansenp closed 1 year ago

hansenp commented 2 years ago

Hidden files are displayed in the input file selection dialog.

image
pnrobinson commented 1 year ago

I do not see any way of adding a negative filter to remove this, but we can add filters like this:

 FileChooser chooser = new FileChooser();
        chooser.setTitle("Open Gopher project file");
        chooser.getExtensionFilters().addAll(
                new FileChooser.ExtensionFilter("Gopher Files", "*.ser"));
        File file = chooser.showOpenDialog(null);

to only show files that have a certain extension. I added this for the importing of previous Gopher projects. If there is another dialog that is showing too many irrelevant files please reopen with the name of the dialog