File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff 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" );
You can’t perform that action at this time.
0 commit comments