From fd551e9145a196347ba22ff288a4d119f358386e Mon Sep 17 00:00:00 2001 From: Dan Cojocaru Date: Tue, 12 Jul 2022 09:22:40 +0300 Subject: [PATCH] Fixed bug: showing error for script loading --- lib/pages/design_component.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pages/design_component.dart b/lib/pages/design_component.dart index 6981a70..96e063c 100644 --- a/lib/pages/design_component.dart +++ b/lib/pages/design_component.dart @@ -799,6 +799,7 @@ class DesignComponentPage extends HookWidget { try { final file = File(selectedFiles.files[0].path!); + nav.pop(); loadScript(await file.readAsString()); } catch (e) { showDialog( @@ -819,7 +820,6 @@ class DesignComponentPage extends HookWidget { }, ); } - nav.pop(); }, ), if (scriptingEnvironment.value != null) ...[