Auto-suggest restoring the previous session when a backup file is present
@jeff
Submitted by Jeff F.T. Assigned to Jeff F.T. @jeff
Description
The project auto-backup feature implemented by Luis creates foo~.xptv files littering my hard drive. As I don't really like having everything duplicated, I propose the following:
-
Run sanity checks when pitivi exits normally, and if everything passes, delete the backup file (or if that is not possible, maybe keep it hidden somewhere)
-
If pitivi crashed or couldn't run those tests normally, the next time you try to load that project it will notice that there is a backup file laying around. If that backup file has a modification time that is newer than the original, run sanity tests on the backup file and ask the user:
[ Restore previous session? x ]
|===============================================|
| |
| An error occured the last time you |
| used this project. Would you like to |
| load the auto-saved version instead? |
| |
| [[ Restore the auto-save ]] [ No thanks ] |
|_______________________________________________|
Imported from https://bugzilla.gnome.org/show_bug.cgi?id=629855