Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bgw-gui] FileDialog extension filters not showing specified filetypes on opening #372

Open
smilefx opened this issue Mar 20, 2023 · 0 comments

Comments

@smilefx
Copy link
Contributor

smilefx commented Mar 20, 2023

Describe the bug
The FileDialog extension filters do not work as intended. Saving a file works fine (including setting the extensionFilters). Chosing to use mode = FileDialogMode.OPEN_FILE however does not display any files (not even ones matching the filter).

To Reproduce
Steps to reproduce the behavior:

BoardGameApplication.showFileDialog(
    FileDialog(
        title = "Load file",
        mode = FileDialogMode.OPEN_FILE,
        extensionFilters = listOf(ExtensionFilter("Proprietary File Format", "pff"))
    )
)

Alternatively using a .pff in the filter doesn't work either:

BoardGameApplication.showFileDialog(
    FileDialog(
        title = "Load file",
        mode = FileDialogMode.OPEN_FILE,
        extensionFilters = listOf(ExtensionFilter("Proprietary File Format", ".pff"))
    )
)

Expected behavior
Should list all files matching the given extension filter and not only folders.

Please complete the following information:

  • OS: Windows 10
  • Java version: OpenJDK 15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant