Project manager: Add option to backup project when it will be changed #104624
+67
−10
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.
The goal is to allow users to easily backup their projects if Godot will make irreversible changes to them. While this could make it more likely that folks will make backups in general, I'm mainly thinking about Android where managing files at all can be difficult (or require installing additional apps to make it not difficult).
I'm not entirely sure about the current approach, though, so I'm hoping to have a discussion about that, and I'm very open to changing direction.
Current Approach
If opening a project will lead to irreversible changes, it adds a "Backup Project" button:
Which will take the user to a variation on the usual dialog for creating a project, in order to allow them to pick the directory and name the project:
After pressing "Backup", the old project will be copied to the new path, the
project.godot
will be edited with the new name, and then it'll be added to the list of projects.This doesn't lead to the original project being opened - the user would have to open it again, but then this time click "OK".
Issues
Alternative Approaches
Anyway, I'm curious to hear what folks think!