[PATCH 1/2] Save all dive computer nicknames - whether used or not

Dirk Hohndel dirk at hohndel.org
Thu Jan 24 13:58:53 PST 2013


On Thu, 2013-01-24 at 13:50 -0800, Linus Torvalds wrote:
> On Thu, Jan 24, 2013 at 1:32 PM, Dirk Hohndel <dirk at hohndel.org> wrote:
> >
> > Interesting. I hadn't caught on to the fact that you take the first
> > entry that you see for a specific model/deviceid, not the last one that
> > you see. Yes, then this works just fine.
> 
> So honestly, I haven't really decided which way is the right one.
> Either "first or last" would work, the only thing it changes is
> whether you'd need to load the special divecomputer xml file first or
> last.
> 
> Right now, when we load the XML file, we only set the
> serial/firmware/nickname information if it wasn't already set. So the
> first one is the one that sticks.
> 
> But I could imagine that we'd want to do the other way around if we
> ever want to have a "load/save settings from/to XML file" graphical
> interface, for example. Then it would make more sense to have the
> newly loaded XML file take precedence.
> 
> But that wouldn't change the suggested multi-xml-file model much. It
> would just mean that you'd put "divecomputers.xml" last on the command
> line instead of first.

But we'd want to make sure that the divecomputers.xml file doesn't
suddenly become the default filename, right?

/D



More information about the subsurface mailing list