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 #392

Closed
NalihznehC opened this issue Sep 12, 2022 · 3 comments
Closed

Auto-save #392

NalihznehC opened this issue Sep 12, 2022 · 3 comments

Comments

@NalihznehC
Copy link

Description
Please add an auto-save function.

Additional context
I crashed on "Multi-Bar Rest", and lost my one-hour progress. I am sad.

@pellens
Copy link

pellens commented Sep 7, 2023

Same here!

@cameronwhite cameronwhite added this to the Alpha 20 milestone Sep 12, 2023
@cameronwhite
Copy link
Member

See also #459 for an example use case. In that case an option to save separate backup copies might have been useful since the main file happened to be corrupted

cameronwhite added a commit that referenced this issue Oct 26, 2024
This is safer in case anything goes wrong or crashes while saving.

Bug: #392
cameronwhite added a commit that referenced this issue Oct 30, 2024
This will be used for auto-backup, which doesn't not need non-const access

Bug: #392
cameronwhite added a commit that referenced this issue Oct 30, 2024
- At a regular time interval, check for modified files and send a copy of the scores to be saved from a background thread, to avoid blocking the UI
- The files are saved under the app data directory, e.g `~/.local/share/powertabeditor/backup`
- Make the Score class copyable to allow making a copy that can be safely moved to a background thread

Bug: #392
cameronwhite added a commit that referenced this issue Oct 30, 2024
- At a regular time interval, check for modified files and send a copy of the scores to be saved from a background thread, to avoid blocking the UI
- The files are saved under the app data directory, e.g `~/.local/share/powertabeditor/backup`
- Make the Score class copyable to allow making a copy that can be safely moved to a background thread

Bug: #392
cameronwhite added a commit that referenced this issue Oct 30, 2024
This is also now printed out when there is an unhandled exception

Bug: #392
@cameronwhite
Copy link
Member

This has been added now - files with unsaved modifications can be backed up at a regular interval (default 30s), and the backup folder location can be opened from the File menu.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants