mirror of
https://github.com/dancojocaru2000/logic-circuits-simulator.git
synced 2025-02-22 17:19: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 {
|
try {
|
||||||
final file = File(selectedFiles.files[0].path!);
|
final file = File(selectedFiles.files[0].path!);
|
||||||
|
nav.pop();
|
||||||
loadScript(await file.readAsString());
|
loadScript(await file.readAsString());
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
showDialog(
|
showDialog(
|
||||||
|
@ -819,7 +820,6 @@ class DesignComponentPage extends HookWidget {
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
nav.pop();
|
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
if (scriptingEnvironment.value != null) ...[
|
if (scriptingEnvironment.value != null) ...[
|
||||||
|
|
Loading…
Add table
Reference in a new issue