After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 629855 - Auto-suggest restoring the previous session when a backup file is present
Auto-suggest restoring the previous session when a backup file is present
Status: RESOLVED FIXED
Product: pitivi
Classification: Other
Component: User interface
Git
Other Linux
: Normal enhancement
: 0.91
Assigned To: Jean-François Fortin Tam
Pitivi maintainers
Depends on:
Blocks:
 
 
Reported: 2010-09-16 15:06 UTC by Jean-François Fortin Tam
Modified: 2012-02-02 16:21 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jean-François Fortin Tam 2010-09-16 15:06:14 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 ] |
|_______________________________________________|
Comment 1 Jean-François Fortin Tam 2010-09-16 15:08:01 UTC
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.
Comment 2 Luis de Bethencourt 2010-09-16 15:09:15 UTC
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
Comment 3 Jean-François Fortin Tam 2012-02-02 16:21:34 UTC
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