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

Autosave feature first cut #160

Merged
merged 5 commits into from
Dec 5, 2023
Merged

Conversation

adamburkegh
Copy link
Contributor

This pull request primarily adds an autosave feature.

  • Periodically, if there are changes in the editor, and it has been X time since the last save, WoPeD will autosave to PNML.
  • If the document has not been saved before, it will save to a temporary file in the default WoPeD directories, named autosaveXXX.pnml.
  • The autosave period is hardcoded to 30 seconds in DefaultStaticConfiguration.DEFAULT_AUTOSAVE_PERIOD
  • I started to change the configuration GUI to make this configurable, but wanted to keep the patch manageable in impact and in effort spent. So this is not in the patch. It would be a reasonable extension.
  • There is also some cleanup of dead code and dead TODO comments included.

@tfreytag tfreytag merged commit 8122ae2 into woped:master Dec 5, 2023
3 of 5 checks passed
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.

2 participants