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

Saving Content. #4

Open
cycomachead opened this issue Dec 2, 2015 · 1 comment
Open

Saving Content. #4

cycomachead opened this issue Dec 2, 2015 · 1 comment

Comments

@cycomachead
Copy link
Member

No description provided.

@towerofnix
Copy link

Not sure if this issue is where we should discuss export / "save as" dialogs, but I'd like to note that this seems to already basically work on my computer - I just have to remove defineProxy('saveFileAs') and add back FileSaver.min.js. Then Snap! automatically uses FileSaver.js (as it always does) to export the file, which Electron handles relatively well by showing a save-as dialog pop-up:

A save-file modal displayed over the Snap<i>!</i> window, with the value "asdf.xml" automatically filled into the filename input

If you want I can make a PR that makes those changes. It meshes nicely with the ability to export sprites, costumes, etc too.

If we do want finer-grained controls, though, we can do access electron.remote.dialog. Note "remote" -- otherwise, like you noted (I believe), we don't have a dialog object to work with.

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

2 participants