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
showSaveDialog should replace extension when switching filters #4634
Comments
Which operating system are you using? |
Arch Linux. Should this be already working in other operating systems ? |
This is a regression on Linux. |
I've downloaded 0.37.2 and it still has the same behavior as before. Is this functionality supposed to be working with other OS'es ? |
I only implemented it on Linux. On other platforms this behavior is not expected in most apps as far as I know. |
As of now (Electron 7.1.10), the extension chosen in the dialog is still (or again?) not added to the file name on Linux. |
This is a common feature seen throughout several editors (gimp, inkscape, etc.), that when the user switches a filter the file path gets updated with the new filtered extension.
This is aimed at singular extensions and should be toggled on through the
options
object thatshowSaveDialog
accepts. In the end, the method should also return the updated file path.Example:
If the
showSaveDialog
is called with the file namehello.foo
and then there's a filter for an extension calledbar
, the dialog should update the file name tohello.bar
so the user can get a proper feedback to what type of file is he saving to.The text was updated successfully, but these errors were encountered: