Skip to content

Commit 7db817a

Browse files
committed
Project not showing on recent project fixed
1 parent 648a64c commit 7db817a

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

lib/modules/jsapi.dart

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,9 @@ class CoreCoder {
107107
Pointer thisObject,
108108
int argumentCount,
109109
Pointer<Pointer> arguments,
110-
Pointer<Pointer> exception) {
110+
Pointer<Pointer> exception) async {
111111
debugPrint("[Template] $argumentCount");
112-
if (argumentCount > 0) {
112+
if (argumentCount > 0){
113113
Pointer jsValueRef = arguments[0];
114114
if (js.jSValueIsObject(ctx, jsValueRef) == 1) {
115115
/// the provided argument 0 is an object, then parse it
@@ -161,9 +161,10 @@ class CoreCoder {
161161
var sln = await CCSolution.loadFromFile(slnPath);
162162
if (sln != null) {
163163
debugPrint("Loading solution $slnPath");
164-
loadSolution(sln, module.buildContext);
165-
RecentProjectsManager.instance.addSolution(slnPath);
164+
await RecentProjectsManager.instance.addSolution(slnPath);
166165
RecentProjectsManager.staticCommit();
166+
Navigator.pop(module.buildContext,2);
167+
loadSolution(sln, module.buildContext);
167168
}
168169
} else {
169170
debugPrint("[JSError] onInitialized not returning string");

0 commit comments

Comments
 (0)