mirror of
https://github.com/dancojocaru2000/logic-circuits-simulator.git
synced 2025-02-21 16:49:36 +02:00
Fixed bug: showing error for script loading
This commit is contained in:
parent
3cdee540fc
commit
fd551e9145
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue