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 is implemented #487

Closed
wants to merge 1 commit into from
Closed

Autosave feature is implemented #487

wants to merge 1 commit into from

Conversation

vinayakjeet
Copy link

WIP (#182 )
This pull request introduces a new autosave feature to the Avogadro application. The feature aims to enhance the user experience by automatically saving the current molecule document at a specified interval of 5 minutes, reducing the risk of data loss in case of unexpected application closure.

The implementation includes setting up an autosave interval with QTimer, determining the autosave directory based on the application data location, and saving the document in the CJSON format. This autosave functionality is careful to activate only if there are unsaved changes, ensuring efficient use of resources and avoiding unnecessary writes. The feature also involves updates to the MainWindow class to incorporate autosave setup and execution logic. This addition is expected to provide a safety net for users, securing their work without requiring manual intervention for frequent saves.

@vinayakjeet
Copy link
Author

hello maintainers @ghutchis I have tried to a lot to prevent the DCO error but it's still coming, can you please help me with it?Thanks

@vinayakjeet
Copy link
Author

Also can you please review my logic and if it's correct should I also implement a Destructor for deleting autosaves files?

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.

1 participant