Got bit by this one.
I did some work in paint.net for a while, and left the machine on overnight. When I returned, the machine was at the login screen. Windows Update forced a reboot, so I lost my work.
The undo/redo functionality seems to already exist. W/O reviewing the source, it would seem that if these objects supported serialization, saving/restoring state would be relatively straightforward.
Thus, to avoid data loss, could paint.net:
Register for reboot notifications (thus be able to act to save ...)
Upon notification of reboot request:Serialize/dump state/save file to isolated storage
Register for automatic startup on the next boot/login
Note: Order of operations important
[*]Upon next boot/login (when registered
Unregister auto-startup
Deserialize state/load file from isolated storage
Note: Order of operations important
Thanks,
.
P.S. - First post, but I read the FAQ, guidelines, common feature requests, searched bug reports, .... This feature is not listed.