[PATCH 5/5] Only remember a DC nickname if the user has pressed OK

Dirk Hohndel dirk at hohndel.org
Fri Dec 21 14:08:59 PST 2012


On December 21, 2012 2:05:45 PM Linus Torvalds 
<torvalds at linux-foundation.org> wrote:
> On Fri, Dec 21, 2012 at 9:36 AM, Dirk Hohndel <dirk at hohndel.org> wrote:
> >
> > I already store them in the config. What about adding a settings block
> > before the <dives></dives>? Something like
> >
> > <settings>
> > <divecomputer deviceid='abc' nickname='my computer' />
> > <divecomputer deviceid='def' nickname='my backup computer' />
> > <autogroup value='TRUE' />  <--- remember, we wanted to make this per file
> > <other settings ... />
> > </settings>
> > <dives>
> > <program name='subsurface' version='1'></program>
> > <trip date='...
>
> Yeah, I think we'd want to do that for other things anyway. And
> perhaps consider moving some of our other config options in there too.

OK, I'll sketch something for that...

> > I'm not sure I agree with that last part. I think we should ask if the
> > user wants to name a dive computer the first time we see it - and that
> > is either when loading an XML file that has a deviceid and we don't have
> > a matching nickname, or when downloading from a new computer for the
> > first time...
>
> So at least for me, I don't actually see the point of a nick-name
> unless I have multiple dive computers of the same type. The
> "dc->model" is about as good a nickname as I can come up with.
>
> So I'd rather see subsurface asking me only if it sees two dive
> computers with the same model, but different deviceid. At that point,
> nicknames suddenly matter ("Old Vyper Air").

I like that logic. Let me think the details through but this should be 
fairly straight forward to do...

Thanks

/D




More information about the subsurface mailing list