From 4cdb4bda783582679b3ea5980d403622a7386c34 Mon Sep 17 00:00:00 2001 From: Arnaud Le Hors Date: Tue, 14 Oct 2025 16:50:42 +0200 Subject: [PATCH] Do not import tracks that are already in the logbook Signed-off-by: Arnaud Le Hors --- src/views/js/import.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/views/js/import.js b/src/views/js/import.js index 2da810b..79099cb 100644 --- a/src/views/js/import.js +++ b/src/views/js/import.js @@ -853,7 +853,9 @@ function updateLogbook() { ipcRenderer.on('gpsdump-result', (event, result) => { if (result.igcForImport.length > 0) { result.igcForImport.forEach(element => { - nbInserted += dbadd.addFlight(element, i18n.gettext('To rename')) + if (element.forImport) { + nbInserted += dbadd.addFlight(element, i18n.gettext('To rename')) + } }); hideWaiting() $('#table-content').removeClass('d-none')