GNOME Bugzilla – Bug 629855
Auto-suggest restoring the previous session when a backup file is present
Last modified: 2012-02-02 16:21:34 UTC
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 ] | |_______________________________________________|
Ah, and the button ordering is wrong, they should be reversed. Restoring the save is the "affirmative" action, so as per http://library.gnome.org/devel/hig-book/stable/windows-alert.html.en it should go to the right.
First part is done and in my git branch, pending the release freeze so it can be pushed to git master. I will work in the second part soon. Promised ;) Luis
commit f85ed86362f8505722649c9a2e5e6d63533b16d2 Author: Jean-François Fortin Tam <nekohayo@gmail.com> Date: Thu Feb 2 11:17:50 2012 -0500 Offer to to load the autosaved backup instead of the project file commit 1214d79b4f05bc806b5e454da66684a0495946f2 Author: Jean-François Fortin Tam <nekohayo@gmail.com> Date: Sun Jan 22 21:11:11 2012 -0500 Show the time for the unsaved changes confirmation dialog Fixes bug #608108 commit 9a20ea4fdc81f125e315c20a1a5b495eff3c1ead Author: Jean-François Fortin Tam <nekohayo@gmail.com> Date: Sun Jan 22 18:08:39 2012 -0500 utils: Allow showing human-readable time deltas Make beautify_ETA more robust