diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-01-01 17:29:38 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-01-01 17:29:38 -0800 |
commit | a58d470bad755c138a84b5516fa27bf74924e24c (patch) | |
tree | 6b902760a42bba3707dff08191c5d3f442074d29 /dive.h | |
parent | 030d0c1294bf6c90c3a58e6678dc56760d197bcb (diff) | |
download | subsurface-a58d470bad755c138a84b5516fa27bf74924e24c.tar.gz |
Remove autogroup from the preferences and store per file instead
Having two spots to toggle autogroup had always been a clear sign of
insanity. The inconsistent ludicrous semantic of when we remembered the
state of autogroup was even worse.
This finally gets rid of that disaster and drops the autogroup setting
from the preferences and makes it instead a per file property. When you
save a file, it saves the state of the autogroup toggle. This seems much
more useful - you may have files where you want to create trips by
default. And others, where you don't.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'dive.h')
-rw-r--r-- | dive.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -536,6 +536,7 @@ extern void remember_dc(const char *model, uint32_t deviceid, const char *nickna extern gboolean dc_was_saved(struct divecomputer *dc); extern void mark_dc_saved(struct divecomputer *dc); extern void clear_dc_saved_status(void); +extern void set_autogroup(gboolean value); #define DIVE_ERROR_PARSE 1 |