Implemented auto backups of project data #813
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR implements simple data recovering options in case of editor crashes, power outages, etc. Implemented functionality is very similiar to data recovering options in Blender and will be familiar to it's users.
I've added Recover menu which providers two options:
Open
efk_quit.efkbac
file which is saved in Temp directory when editor is closed under normal operation. This option allows to recover project which was lost when you accidentally closed editor and didn't save changes. If such file is not found an error will be shown.Allows user to open Auto Saved files from Temp directory. Auto Saved files will start with
efk_autosave
and will haveefkbac
extension. These files are saved automatically with interval configured in options menu (2 minutes by default). If that interval parameter is set to 0 then auto saves will be disabled.Files with
efkbac
extensions are simplyefkefc
files with one additional propertyBackupOriginalPath
written in their editor data. This property is used to correcty recover project's path when backup is loaded.I've added strings translation in spanish and japanese files, but once again, as I don't speak these languages you may want to rewrite these.