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

Code may be Accidentally Lost when Autosave is Turned on #1059

Closed
2 of 4 tasks
Acfboy opened this issue Mar 8, 2022 · 3 comments · Fixed by #1061
Closed
2 of 4 tasks

Code may be Accidentally Lost when Autosave is Turned on #1059

Acfboy opened this issue Mar 8, 2022 · 3 comments · Fixed by #1061
Assignees
Labels
bug Something isn't working high_priority High Priority Issues are marked with this label.

Comments

@Acfboy
Copy link

Acfboy commented Mar 8, 2022

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

When CP editor is reopened after unexpected exit, it will return to the page before the last normal shutdown, and all codes will become the page before the last normal shutdown. If auto save is enabled, the previous code will be saved again, so the code is lost.

Expected Behavior

Saved files should not be rolled back.

Steps To Reproduce

I am sorry that I can't create unexpected exit at any time.

CP Editor Version

6.8.2

OS

Windows 7

Are you willing to contribute to this?

  • I'm ready to fix this (and will open a PR soon)
  • I'd like to have a try (with the help of the maintainers)
  • No, thanks

Anything else?

No response

@Acfboy Acfboy added the bug Something isn't working label Mar 8, 2022
@ouuan ouuan added the high_priority High Priority Issues are marked with this label. label Mar 8, 2022
@ouuan ouuan self-assigned this Mar 8, 2022
@ouuan
Copy link
Member

ouuan commented Mar 8, 2022

@all-contributors add @Acfboy as a contributor for reporting a bug.

@allcontributors
Copy link
Contributor

@ouuan

I've put up a pull request to add @Acfboy! 🎉

@Acfboy
Copy link
Author

Acfboy commented Apr 3, 2022

I am sorry about that I didn't read the document carefully, this problem can be solved by "Auto-save the current session periodically".

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 High Priority Issues are marked with this label.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants