Browse Source

Fixed bug: showing error for script loading

master
Kenneth Bruen 2 years ago
parent
commit
fd551e9145
Signed by: kbruen
GPG Key ID: CB77B9FE7F902176
  1. 2
      lib/pages/design_component.dart

2
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) ...[

Loading…
Cancel
Save