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

Keep supplied extension in macOS save dialogues #9

Merged
merged 1 commit into from Jul 2, 2019

Conversation

ayuusweetfish
Copy link
Contributor

The dialogue should keep the extension if it's among the allowed ones, or append the first one in the allowed list to the file name otherwise. Closes aseprite/aseprite#1835.

For some reason setAllowedFileTypes: overwrites the extension provided in setNameFieldStringValue:, so it needs to be done before the latter. Apparently authors of electron have run into the same issue... Does this count as an upstream bug in AppKit? (=~=)

@dacap dacap merged commit 1d4fa61 into aseprite:master Jul 2, 2019
@dacap
Copy link
Member

dacap commented Jul 2, 2019

Hi @kawa-yoiko, I've tested this change on macOS 10.14.5 and the file extension is still not showing up 😢 Anyway after applying an extra change (c1a4379) it does work, so I've merged this change 👍

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

Successfully merging this pull request may close these issues.

Native (macOS) File Dialog doesn't respect default file extension preferences
2 participants