mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Imrpove the nickname handling
We now store the model information together with the deviceid and nickname in order to be able to check if we have a record for any dive computer with the same model (as that now triggers our nickname dialog). This changes the format of the config entries for nicknames - the best solution might be to just delete those and start again. What is still missing is the code to store the nicknames in the XML file. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
8d2abc05f6
commit
50aa6d1afa
3 changed files with 124 additions and 52 deletions
2
dive.h
2
dive.h
|
|
@ -529,7 +529,7 @@ extern void flush_divelist(struct dive *dive);
|
|||
|
||||
extern void set_dc_nickname(struct dive *dive);
|
||||
extern const char *get_dc_nickname(uint32_t deviceid);
|
||||
extern void remember_dc(uint32_t deviceid, const char *nickname, gboolean change_conf);
|
||||
extern void remember_dc(uint32_t deviceid, const char *model, const char *nickname, gboolean change_conf);
|
||||
|
||||
#define DIVE_ERROR_PARSE 1
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue