mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Import: don't add to new trip while downloading
Since process_imported_dives() can add dives to a newly generated trip, this need not be done in the downloading code. This makes data flow distinctly simpler, as no trip table and no add-new-trip flag has to be passed down to the libdivecomputer glue code. Moreover, since now the trip creation is done at the import step rather than the download step, the latest status of the "add to new trip" checkbox will be considered. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
1cd0863cca
commit
ff9506b21b
12 changed files with 18 additions and 74 deletions
|
@ -41,13 +41,11 @@ typedef struct dc_user_device_t
|
|||
struct dive_trip *trip;
|
||||
int preexisting;
|
||||
bool force_download;
|
||||
bool create_new_trip;
|
||||
bool libdc_log;
|
||||
bool libdc_dump;
|
||||
bool bluetooth_mode;
|
||||
FILE *libdc_logfile;
|
||||
struct dive_table *download_table;
|
||||
struct trip_table *trip_table;
|
||||
} device_data_t;
|
||||
|
||||
const char *errmsg (dc_status_t rc);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue