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

fix 'unsaved' value when closing workflows #999

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mcmonkey4eva
Copy link
Member

for #735

Linked issue describes the problem well. I replicated it locally, tested, found it comes down to just this variable not getting unset where other variables are unset at, so I unset it there. After this update, reopening a saved workflow that you opened previously does correctly treat the workflow as initially being not unsaved.

Copy link
Member

@huchenlei huchenlei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a playwright test to verify the fix works?

@JorgeR81
Copy link

I also noticed workflows are set as unsaved, when we drag a PNG or JSON file.

Does this PR address this ?

( I was about to open an issue )

Most of the time, my "unsaved workflows" are just a PNG or JSON file I dragged in, to check the workflow.

This way, I can have 10 unsaved workflows or more.
And sometimes I just want to clear all the clutter ( especially using workflow tabs ) but now need to confirm every time I close an workflow.

@mcmonkey4eva
Copy link
Member Author

Well that genuinely is an unsaved workflow -- quicker ways to clear out random workflows (eg shift+click close to bypass unsaved prompt) would be a valid feature request to file

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.

3 participants