From 9aa590c76c3f896e4331848f615f84ca3b84cf34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Vanden=20Bossche?= Date: Tue, 16 Jul 2024 03:19:46 +0200 Subject: [PATCH] Fixed on import jounrey from external tool --- .../widgets/journey/journey_import_modal_from_type.dart | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/app/lib/event/widgets/journey/journey_import_modal_from_type.dart b/packages/app/lib/event/widgets/journey/journey_import_modal_from_type.dart index fb27c568..c11f8dc2 100644 --- a/packages/app/lib/event/widgets/journey/journey_import_modal_from_type.dart +++ b/packages/app/lib/event/widgets/journey/journey_import_modal_from_type.dart @@ -150,6 +150,11 @@ void journeyImportModalFromType( onGpxDownloaded: (file) async { Navigator.of(context).pop(); await uploadJourneyFile(file, true); + + if (context.mounted) { + Navigator.of(context).pop(); + } + selected?.call(); }, );