Jump to content

Automatically Save/Restore state on reboot?


Recommended Posts

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:

  1. Register for reboot notifications (thus be able to act to save ...)
  2. Upon notification of reboot request:
    1. Serialize/dump state/save file to isolated storage
    2. Register for automatic startup on the next boot/login
    3. Note: Order of operations important

[*]Upon next boot/login (when registered

  1. Unregister auto-startup
  2. Deserialize state/load file from isolated storage
  3. 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.

Link to comment
Share on other sites

I know how to do this stuff. You don't have to design the feature.

... saving/restoring state would be relatively straightforward.

Don't ever say something like that. It's extremely patronizing.

The Paint.NET Blog: https://blog.getpaint.net/

Donations are always appreciated! https://www.getpaint.net/donate.html

forumSig_bmwE60.jpg

Link to comment
Share on other sites

You're leaving your computer on overnight without saving your work? Sorry, but that's just dumb. Windows Update is not the only thing that might cause a loss of work. Power outages or pets spring to mind...

Save often.

xZYt6wl.png

ambigram signature by Kemaru

[i write plugins and stuff]

If you like a post, upvote it!

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...