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

AUTO SAVE FEATURE (#182) #483

Closed
wants to merge 2 commits into from
Closed

AUTO SAVE FEATURE (#182) #483

wants to merge 2 commits into from

Conversation

vinayakjeet
Copy link

WIP #182
Hi Mentors Vinayakjeet this side

Title: Implement Auto-save Feature for Avogadro

Description:

This pull request introduces an auto-save feature to Avogadro, automatically saving the current molecule to a temporary file at a predefined interval (every 5 minutes). This feature is designed to enhance data integrity by reducing the risk of data loss during unexpected application closures. The auto-save mechanism checks if there's a loaded and modified molecule before performing the save operation, using the CJSON format for the saved files.

Changes include:

Initialization of an auto-save timer in MainWindow.
Implementation of autosaveDocument method to handle the auto-saving logic.
Modification of MainWindow to support auto-save functionality, including managing the auto-save interval and temporary file creation.
I'd appreciate feedback on the implemented logic and any suggestions for improvement. Also, should UI CHANGES be implemented to inform the user when an auto-save has occurred ? Additionally, is there a need to create a DESTRUCTOR or cleanup mechanism for managing extra autosaved files, ensuring that only a certain number of autosave files are kept at any time?

Your guidance and suggestions would be highly appreciated to refine this feature further.

Copy link

welcome bot commented Mar 26, 2024

Thanks for opening this pull request! Please check out our contributing guidelines and check for the automated tests.

@vinayakjeet vinayakjeet closed this by deleting the head repository Mar 27, 2024
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