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

"Exported Successfully" when cancelling export #3542

Closed
jgomez720 opened this issue Aug 20, 2024 · 10 comments · Fixed by #3882
Closed

"Exported Successfully" when cancelling export #3542

jgomez720 opened this issue Aug 20, 2024 · 10 comments · Fixed by #3882
Assignees
Labels
bug Something isn't working high-priority

Comments

@jgomez720
Copy link
Collaborator

Description

Super tiny thing, but we toast "exported successfully" when the user selects "cancel"

Version

v0.24.12

Recording

Screenshare.-.2024-08-19.5_42_24.PM.mp4
@jessfraz
Copy link
Contributor

i would consider this a bug

@jessfraz jessfraz added high-priority bug Something isn't working and removed polish labels Aug 20, 2024
@jessfraz
Copy link
Contributor

because it is not correct behavior

@jgomez720
Copy link
Collaborator Author

ah, alrighty

@jessfraz
Copy link
Contributor

i literally had no idea there was a different menu to hit export from? why so many ways to export, is that code path tested? maybe we lessen the different ways to do things? idk why we need three ways to export something

@jgomez720
Copy link
Collaborator Author

wait how are you exporting? I only know the top left

@jgomez720
Copy link
Collaborator Author

oh I found the other button

@Irev-Dev
Copy link
Collaborator

Irev-Dev commented Aug 28, 2024

Edit sorry could have sworn I saw another issue with the exact same thing, but now I can find it.


Going to close this since it duplicates.

@Irev-Dev Irev-Dev reopened this Aug 29, 2024
@franknoirot franknoirot self-assigned this Sep 6, 2024
@franknoirot
Copy link
Collaborator

franknoirot commented Sep 6, 2024

It's the same code path however you get to export:

  1. From the project menu
  2. From the sidebar

The success toast is firing because there was no failure during the export, and that is a "success" as far as these lines are concerned. I need to see how to receive a signal from the OS export UI that it was either a cancellation or a submission, because right now we only get back a "done" or "error".

@jessfraz jessfraz added this to the v1 Modeling App Launch milestone Sep 11, 2024
@franknoirot
Copy link
Collaborator

Hell yeah there's a canceled property on the returned object https://www.electronjs.org/docs/latest/api/dialog#dialogshowsavedialogwindow-options

@franknoirot
Copy link
Collaborator

Ah dang I wanted to add an E2E test and I just remembered we can't interact with the OS dialog 💀. I'll add it to #3588

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

Successfully merging a pull request may close this issue.

4 participants