Krakonos / merkaartor-oldbugs

0 stars 0 forks source link

auto-save (redmine import 3242, Friedrich Volkmann, created 01/30/2011) #38

Open Krakonos opened 9 years ago

Krakonos commented 9 years ago

Many applcations, eg. Thunderbird, have an autosave function in order to recover an edit session after a crash of the application, or a crash of the OS, or a blackout etc.

Of course it is possible to save the work manually every few minutes, but nobody does that, as nobody reckons with a crash.

An autosave function would go well with two preferences: interval and file name.

Krakonos commented 9 years ago

It probably does not work out with only one autosave file. For example you had a crash. Next time when you start merkaartor you are busy with other things for some time so the autosave file might get overwritten.

Krakonos commented 9 years ago

Usually, the autosave is destroyed after a normal closing of the application.When restarting the app, if an autosave is found, it is explicitely asked to the user what to do with it (restore or destroy).

I would have implemented this long ago but the problem is that saving is synchronous now, in Merkaartor.I hardly imagine forcing the user to pause for the autosave, so there quite a bunch of rework to allow this in the background...    
Krakonos commented 9 years ago

It won't work out with only one autosave file as it is possible to crash Merkaartor during save file writing.