20 Oct
2008
20 Oct
'08
6:43 p.m.
bulia byak wrote:
Does "transparently" imply that the old prefs will be preserved for those who upgrade to the new version?
Yes, this is what I meant. I intend to add a version attribute at the root of the pref file, with no attribute meaning lowest possible version, and store a mapping in the application (like: "/options/dragtolerance/value in version 0 corresponds to /options/selection/drag_tolerance in version 1"), then convert old files at first run.
To handle versions 2 and later, one only needs to store a mapping from version 0 to 1, and from version 1 to 2, then apply those iteratively if version 0 is encountered. This operation is rare so performance is not a concern.
Regards, Krzysztof Kosiński
--
View this message in context: http://www.nabble.com/Preferences-refactoring---important-changes-tp20072337...
Sent from the Inkscape - Dev mailing list archive at Nabble.com.