View Single Post
Old 12-10-2015, 04:38 AM   #148
sherman
Guru
sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.
 
Posts: 876
Karma: 2676800
Join Date: Aug 2008
Location: Taranaki - NZ
Device: Kobo Aura H2O, Kobo Forma
Quote:
Originally Posted by Nick_1964 View Post
The problem with that is that more patches come out and some patches changes, recently 3 or 4 patches are replaced by others..
It's not that hard.

In it's high level form, the logic could be something like this:
Code:
if saved_patch in current_patch_file:
    # use saved_patch data
else:
    # discard saved_patch data
Of course there are a number of details that need to be worked out, but that's the gist of it.

EDIT: Saving and restoring the enabled/disabled status of a patch is easy. I'm hoping to also be able to save and restore settings such as margins/font sizes that people may modify as well, but that is a much more difficult problem to solve without breaking the patches.

Last edited by sherman; 12-10-2015 at 04:41 AM.
sherman is offline   Reply With Quote