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

[Windows] Selecting *.* causes save dialog to append entire list of last selected file formats #40

Closed
btzy opened this issue Oct 5, 2021 · 0 comments · Fixed by #41
Closed
Labels
bug Something isn't working

Comments

@btzy
Copy link
Owner

btzy commented Oct 5, 2021

Steps to reproduce:

  1. Run test_savedialog.c.
  2. Change the filter dropdown to *.*.
  3. Type a file name without extension (e.g. "test"), and click "Save" / press Enter.
  4. Observe that the returned file name is "C:\path\to\file\test.c,cpp,cc".

Expected behaviour:

It should return "C:\path\to\file\test.c" (i.e. just the first extension) instead. Note that normal Windows behaviour seems to append the ".c" extension even if the filter dropdown is *.*, so we should stick to that.

Reference: mlabbe/nativefiledialog#101

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant