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 Implemented #488

Closed
wants to merge 0 commits 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
Introduced an autosave feature in Avogadro to automatically save work every 5 minutes, reducing data loss risk. Contemplating further UI enhancements to indicate autosave status and considering the implementation of a DESTRUCTOR for cleanup. Feedback on logic and suggestions for UI improvements would be appreciated

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